Deployment Info
This page contains the info related to lyftrondata installation Deployment.
Last updated
This page contains the info related to lyftrondata installation Deployment.
Last updated
INFO
These instructions have been tested on Linux RHEL - 8 and Ubuntu 22.04 LTS.
Before starting the installation process make sure you have implement the application requirements.
After the requirement implementation, create a user in linux which going to manage the application if needed.
If needed a new linux user, create a user or you can skip the user creation. After user creation or not, just download the directory.sh
script, give permission to execute it and execute.
This script will create require directories for the application and download the require script from Lyftrondata Repo.
Copy the wheels folder which is provided by team to /opt/lyftrondata/lyftrondatainstaller.
Add your new user or current login user to the docker group so you can run the docker commands without sudo.
Here are the steps to restore a database dump using DBeaver and update the database credentials in the .env_API
and .env_DB
files:
Connect to PostgreSQL Database in DBeaver:
Open DBeaver and connect to the PostgreSQL database via master database using the provided credentials (db_host
, db_name
, db_user
, db_password
).
Once connected, expand the database in the DBeaver explorer to view the list of databases.
To create new databases lyft_sync
and lyft_master
in DBeaver, follow these steps:
Right-click on the database connection.
Select "Create" and then "Database".
Enter lyft_sync
as the name and click "OK".
Repeat steps for lyft_master
.
Verify creation in the DBeaver explorer panel.
here are the steps to create a user with password and grant permissions using DBeaver:
Open SQL Editor: After successfully connecting to the database, right-click on the master database in the database navigator panel and select "SQL Editor" and then "New SQL Editor".
Write SQL Commands: In the SQL Editor window, write the SQL commands to create the user and grant permissions. Based on your provided commands, the SQL script should look like this:
Execute SQL Script: Once you have written the SQL script, click on the "Execute SQL Script" button (usually looks like a green arrow) in the toolbar of the SQL Editor window.
Verify Execution: After executing the script, you should see the output in the bottom panel indicating successful execution. You can also verify the changes by querying the system tables or using DBeaver's interface to view users and their permissions.
Restore Database Dump:
Right-click on the database name (lyft_sync
or lyft_master
) where you want to restore the dump.
Go to "Tools" and select "Restore".
In the Restore dialog, choose "Local client" as the restore method.
Select PostgreSQL version 14 from the dropdown menu.
Choose "tar" as the format of the dump file.
Click on the "Attach file" button and select the database dump file provided to you.
Click "Next" to proceed.
Start Restore Process:
Review the restore settings and make sure they are correct.
Click on the "Start" button to begin the restore process.
Wait for the restore process to complete. You may see progress indicators during this process.
Update Database Credentials in .env Files:
Open the .env_API
and .env_DB
files in a text editor.
Update the database credentials (db_host
, db_name
, db_user
, db_password
) with the correct values.
Save the changes to the .env_API
and .env_DB
files.
Verify Connection and Functionality:
Reconnect to the PostgreSQL database in DBeaver using the updated credentials.
Verify that you can access the databases (lyft_sync
and lyft_master
) and that the data has been successfully restored.
Test the functionality of the applications connected to the databases to ensure they are working as expected.
By following these steps, you can successfully restore the database dump using DBeaver and update the database credentials in the .env_API
and .env_DB
files for your applications. Remember to double-check the credentials and test the connections to ensure everything is configured correctly.
Go to the directory which is /opt/lyftrondata/lyftrondatainstaller
, run the envwizard.sh script. This script will ask about the details related to your UI, API and database info and the S3 access key and secret key.
When the envwizard.sh
is executed, you need to enter the details related db and aws and lyftrondata app.
Now go to /opt/lyftrondata/lyftrondatainstaller
, give execution permission to the script and run the lyftrondataapp.sh script.
During the execution it will ask for docker hub password. Enter the password which is shared by Lyftrondata Team.
After all docker images pulled, you need to wait a bit to let the application UI, API and Airflow be ready.
After the successfully installation and configuration, In your browser, visit http://localhost:3000
Note: Make sure you server is listening on these ports.
You will need to sign in the application using the email id admin@lyftrondata.com
and password Lyftron123!
. Once you sign in, you are good to go.
For the custom wheels installation which are provided by the lyftrondata team, copy those wheels folder to /opt/lyftrondata/lyftrondatainstaller
and go to /opt/lyftrondata/lyftrondatainstaller
directory and run the script ./wheelsinstaller.sh
. This will install the require wheels which was provided you by the lyftrondata team.
After Login follow the steps How to create warehouse
Log in to the admin console using your credentials.
Navigate to the "Account Management" section.
In the "Account Management" section, find and select "Compute."
Click on the "Warehouse" tab.
Look for the "Add Warehouse" button and click on it.
In the form that appears, enter the following details:
Name: Enter the name of the warehouse.
Version: Specify the version of the warehouse.
Compute Rate: Enter the compute rate for the warehouse.
Tags: Add any relevant tags for the warehouse.
Tenant: Select the appropriate tenant for the warehouse.
Computes: Choose the computes to be associated with the warehouse.
Description: Provide a brief description of the warehouse.
After filling in all the necessary details, click on the "Submit" button to add the warehouse.