-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update luigi metabase README and DDL
- Loading branch information
1 parent
b25ab6e
commit 9f87528
Showing
2 changed files
with
25 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
Execute the following command to install gcc, python, related python modules, Luigi, JDK 8 and Git. | ||
Execute the following command to install gcc, python, related python modules, Luigi, JDK 8, Git and PostgreSQL client. | ||
|
||
```bash | ||
yum install -y gcc-c++* | ||
|
@@ -13,11 +13,7 @@ pip3 install luigi | |
|
||
yum install -y java-1.8.0-openjdk-devel.x86_64 | ||
yum install -y git | ||
``` | ||
|
||
Then execute the following commands to install PostgreSQL client. | ||
|
||
``` | ||
cd ~ | ||
wget http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/compat-openssl10-1.0.2o-3.el8.x86_64.rpm | ||
rpm -i compat-openssl10-1.0.2o-3.el8.x86_64.rpm | ||
|
@@ -30,22 +26,27 @@ git clone https://github.com/alibabacloud-howto/opensource_with_apsaradb.git | |
cd opensource_with_apsaradb/luigi_metabase/ | ||
``` | ||
|
||
Execute the command to start Metabase. | ||
|
||
``` | ||
cd ~/opensource_with_apsaradb/luigi_metabase/metabase | ||
wget https://downloads.metabase.com/v0.40.3.1/metabase.jar | ||
java -jar metabase.jar | ||
``` | ||
|
||
Once it is up and running, navigate to ``http://<ECS_EIP>:3000/`` | ||
|
||
Admin User: [email protected] | ||
Password: N1cetest | ||
Business Owner user: [email protected] | ||
Password: N1cetest | ||
|
||
``` | ||
cd ~/adbpg_client_package/bin | ||
./psql -hpgm-3nsa364dun8rza5k168190.pg.rds.aliyuncs.com -p1921 -Udemo sales_dw | ||
./psql -hpgm-3nsp9729e9aql1t9168190.pg.rds.aliyuncs.com -p1921 -Udemo sales_dw | ||
\i ~/opensource_with_apsaradb/luigi_metabase/sales_dw_ddl.sql | ||
select tablename from pg_tables where schemaname='public'; | ||
``` | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters