You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2015/03/21 01:28:39 UTC
[06/25] incubator-kylin git commit: KYLIN-634 Script to import sample
data and cube metadata
KYLIN-634 Script to import sample data and cube metadata
Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/1b5e9269
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/1b5e9269
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/1b5e9269
Branch: refs/heads/master
Commit: 1b5e9269bf012e9f78ec5c991cc58dbf74af5e93
Parents: 3f1133c
Author: Shao Feng, Shi <sh...@ebay.com>
Authored: Fri Mar 13 10:57:11 2015 +0800
Committer: Shao Feng, Shi <sh...@ebay.com>
Committed: Fri Mar 13 10:57:11 2015 +0800
----------------------------------------------------------------------
bin/sample.sh | 6 ++++--
.../sample_cube/metadata/model_desc/kylin_sales_model.json | 2 +-
examples/sample_cube/metadata/table/DEFAULT.KYLIN_CAL_DT.json | 2 +-
.../metadata/table/DEFAULT.KYLIN_CATEGORY_GROUPINGS.json | 2 +-
examples/sample_cube/metadata/table/DEFAULT.KYLIN_SALES.json | 2 +-
5 files changed, 8 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/1b5e9269/bin/sample.sh
----------------------------------------------------------------------
diff --git a/bin/sample.sh b/bin/sample.sh
index ca324e5..84629e9 100644
--- a/bin/sample.sh
+++ b/bin/sample.sh
@@ -1,6 +1,8 @@
#!/bin/sh
dir=$(dirname ${0})
-job_jar=`ls -ls ${KYLIN_HOME}/lib | grep kylin-job | awk '{print $9}'`
+source ${dir}/check-env.sh
+job_jar=`find ${KYLIN_HOME}/lib/ -name kylin-job*.jar`
cd ${KYLIN_HOME}/sample_cube/data
hive -f ${KYLIN_HOME}/sample_cube/create_sample_tables.sql || { exit 1; }
-hbase org.apache.hadoop.util.RunJar ${KYLIN_HOME}/lib/${job_jar} org.apache.kylin.common.persistence.ResourceTool upload ${KYLIN_HOME}/sample_cube/metadata || { exit 1; }
\ No newline at end of file
+cd ${KYLIN_HOME}
+hbase org.apache.hadoop.util.RunJar ${job_jar} org.apache.kylin.common.persistence.ResourceTool upload ${KYLIN_HOME}/sample_cube/metadata || { exit 1; }
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/1b5e9269/examples/sample_cube/metadata/model_desc/kylin_sales_model.json
----------------------------------------------------------------------
diff --git a/examples/sample_cube/metadata/model_desc/kylin_sales_model.json b/examples/sample_cube/metadata/model_desc/kylin_sales_model.json
index 0f3b13e..bdefd3e 100644
--- a/examples/sample_cube/metadata/model_desc/kylin_sales_model.json
+++ b/examples/sample_cube/metadata/model_desc/kylin_sales_model.json
@@ -21,7 +21,7 @@
"fact_table" : "DEFAULT.KYLIN_SALES",
"filter_condition" : null,
"partition_desc" : {
- "partition_date_column" : "DEFAULT.KYLIN_CAL_DT.CAL_DT",
+ "partition_date_column" : "DEFAULT.KYLIN_SALES.CAL_DT",
"partition_date_start" : 0,
"partition_type" : "APPEND"
}
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/1b5e9269/examples/sample_cube/metadata/table/DEFAULT.KYLIN_CAL_DT.json
----------------------------------------------------------------------
diff --git a/examples/sample_cube/metadata/table/DEFAULT.KYLIN_CAL_DT.json b/examples/sample_cube/metadata/table/DEFAULT.KYLIN_CAL_DT.json
index 1031f25..5bdd778 100644
--- a/examples/sample_cube/metadata/table/DEFAULT.KYLIN_CAL_DT.json
+++ b/examples/sample_cube/metadata/table/DEFAULT.KYLIN_CAL_DT.json
@@ -1,6 +1,6 @@
{
"uuid" : "0ff420eb-79ad-40bd-bca9-12d8cd05c60a",
- "name" : "TEST_CAL_DT",
+ "name" : "KYLIN_CAL_DT",
"columns" : [ {
"id" : "1",
"name" : "CAL_DT",
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/1b5e9269/examples/sample_cube/metadata/table/DEFAULT.KYLIN_CATEGORY_GROUPINGS.json
----------------------------------------------------------------------
diff --git a/examples/sample_cube/metadata/table/DEFAULT.KYLIN_CATEGORY_GROUPINGS.json b/examples/sample_cube/metadata/table/DEFAULT.KYLIN_CATEGORY_GROUPINGS.json
index 7bcd092..d1461b7 100644
--- a/examples/sample_cube/metadata/table/DEFAULT.KYLIN_CATEGORY_GROUPINGS.json
+++ b/examples/sample_cube/metadata/table/DEFAULT.KYLIN_CATEGORY_GROUPINGS.json
@@ -1,6 +1,6 @@
{
"uuid" : "952d11b5-69d9-45d1-92af-227489485e3f",
- "name" : "TEST_CATEGORY_GROUPINGS",
+ "name" : "KYLIN_CATEGORY_GROUPINGS",
"columns" : [ {
"id" : "1",
"name" : "LEAF_CATEG_ID",
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/1b5e9269/examples/sample_cube/metadata/table/DEFAULT.KYLIN_SALES.json
----------------------------------------------------------------------
diff --git a/examples/sample_cube/metadata/table/DEFAULT.KYLIN_SALES.json b/examples/sample_cube/metadata/table/DEFAULT.KYLIN_SALES.json
index a62a576..33a8807 100644
--- a/examples/sample_cube/metadata/table/DEFAULT.KYLIN_SALES.json
+++ b/examples/sample_cube/metadata/table/DEFAULT.KYLIN_SALES.json
@@ -1,6 +1,6 @@
{
"uuid" : "e286e39e-40d7-44c2-8fa2-41b365522771",
- "name" : "TEST_KYLIN_FACT",
+ "name" : "KYLIN_SALES",
"columns" : [ {
"id" : "1",
"name" : "TRANS_ID",