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/14 01:02:31 UTC
[46/50] [abbrv] incubator-kylin git commit: Update document for
sample.sh
Update document for sample.sh
Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/379ddf14
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/379ddf14
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/379ddf14
Branch: refs/heads/staging
Commit: 379ddf145c9aabc6d3760a5b07796fca3ce33f8a
Parents: 1b5e926
Author: Shao Feng, Shi <sh...@ebay.com>
Authored: Fri Mar 13 10:57:30 2015 +0800
Committer: Shao Feng, Shi <sh...@ebay.com>
Committed: Fri Mar 13 10:57:30 2015 +0800
----------------------------------------------------------------------
docs/Installation/install_and_run.md | 23 +++++++++++++++++++----
1 file changed, 19 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/379ddf14/docs/Installation/install_and_run.md
----------------------------------------------------------------------
diff --git a/docs/Installation/install_and_run.md b/docs/Installation/install_and_run.md
index 82369eb..16179fa 100644
--- a/docs/Installation/install_and_run.md
+++ b/docs/Installation/install_and_run.md
@@ -27,12 +27,17 @@ If you are running Kylin in a cluster or you have multiple Kylin instances, plea
> │ ├── check-env.sh
> │ ├── find-hive-dependency.sh
> │ ├── health-check.sh
-> │ └── kylin.sh
+> │ ├── kylin.sh
+> │ └── sample.sh
> │
> ├── conf
> │ ├── kylin_job_conf.xml
> │ └── kylin.properties
> │
+> ├── sample_cube
+> │ ├── data
+> │ └── metadata
+> │
> ├── tomcat
> │ ├── webapps
> │ │ └── kylin.war
@@ -40,9 +45,19 @@ If you are running Kylin in a cluster or you have multiple Kylin instances, plea
> │
> └── lib
> ├── kylin-coprocessor-${version}.jar
-> └── kylin-job-${version}.jar
-
-
+> ├── kylin-job-${version}.jar
+> └── kylin-jdbc-${version}.jar
+
+###Create sample cube
+Kylin provides a script for you to create a sample Cube; the script will also create three sample hive tables:
+
+1. Run ${KYLIN_HOME}/bin/sample.sh
+2. Logon Kylin web, select project "learn_kylin";
+3. Select the sample cube "kylin_sales_cube", click "Actions" -> "Build", pick up a date later than 2014-01-01 (to cover all 10000 sample records);
+4. Check the build progress in "Jobs" tab, until 100%;
+5. Execute SQLs in the "Query" tab, for example:
+ select cal_dt, sum(price) as total_selled, count(distinct seller_id) as sellers from kylin_sales group by cal_dt order by cal_dt
+6. You can verify the query result and compare the response time with hive;
###Build from source
> git clone https://github.com/KylinOLAP/Kylin.git