-
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 project files.
- Loading branch information
1 parent
65b68ff
commit 24a277a
Showing
4 changed files
with
90 additions
and
3 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 |
---|---|---|
|
@@ -30,10 +30,30 @@ git clone https://github.com/alibabacloud-howto/opensource_with_apsaradb.git | |
cd opensource_with_apsaradb/luigi_metabase/ | ||
``` | ||
|
||
``` | ||
cd ~/opensource_with_apsaradb/luigi_metabase/metabase | ||
wget https://downloads.metabase.com/v0.40.3.1/metabase.jar | ||
java -jar metabase.jar | ||
``` | ||
|
||
Admin User: [email protected] | ||
Password: N1cetest | ||
Business Owner user: [email protected] | ||
Password: N1cetest | ||
|
||
|
||
Execute the command to start luigi daemon. Once it is up and running, navigate to ``http://<ECS_EIP>:8082/`` | ||
|
||
``` | ||
luigid | ||
``` | ||
|
||
``` | ||
cd ~/adbpg_client_package/bin | ||
./psql -hpgm-3nsa364dun8rza5k168190.pg.rds.aliyuncs.com -p1921 -Udemo sales_dw | ||
select tablename from pg_tables where schemaname='public'; | ||
``` | ||
|
||
|
||
|
||
This tutorial is modified based on [https://github.com/abhishekzambre/data-warehouse](https://github.com/abhishekzambre/data-warehouse) to running on Alibaba Cloud. |
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
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
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
DROP TABLE IF EXISTS association_rules; | ||
DROP TABLE IF EXISTS product_info; | ||
DROP TABLE IF EXISTS invoice; | ||
DROP TABLE IF EXISTS customer_info; | ||
DROP TABLE IF EXISTS invoice_time; | ||
DROP TABLE IF EXISTS invoice_outliers; | ||
|
||
|
||
-- Table: Association Rules | ||
CREATE TABLE association_rules ( | ||
consequent_support Float, | ||
leverage Float, | ||
antecedent_support Float, | ||
conviction Float, | ||
lift Float, | ||
antecedants Text, | ||
confidence Float, | ||
support Float, | ||
consequents Text | ||
); | ||
|
||
|
||
-- Table: Product Info | ||
CREATE TABLE product_info ( | ||
description Text, | ||
unit_price Float, | ||
stock_code Text | ||
); | ||
|
||
-- Table: Invoice | ||
CREATE TABLE invoice ( | ||
invoice_no Text, | ||
quantity Integer, | ||
invoice_date Text, | ||
customer_id Integer, | ||
stock_code Text | ||
); | ||
|
||
-- Table: Customer Info | ||
CREATE TABLE customer_info ( | ||
customer_id Integer, | ||
country Text, | ||
country_code Text | ||
); | ||
|
||
-- Table: Invoice Time | ||
CREATE TABLE invoice_time ( | ||
minute Integer, | ||
year Integer, | ||
month Text, | ||
hour Integer, | ||
dayofyear Integer, | ||
weekofyear Integer, | ||
dayofweek Integer, | ||
day Integer, | ||
quarter Integer, | ||
invoice_date Text | ||
); | ||
|
||
-- Table: Invoice Outliers | ||
CREATE TABLE invoice_outliers ( | ||
invoice_no Text, | ||
quantity Integer, | ||
invoice_date Text, | ||
customer_id Integer, | ||
stock_code Text | ||
); |