Kylin provides a script for you to create a sample Cube; the script will also create five sample Hive tables:
${KYLIN_HOME}/bin/sample.sh; Restart Kylin server to flush the caches;learn_kylin in the project dropdown list (left upper corner);kylin_sales_cube, click “Actions” -> “Build”, pick up a date later than 2014-01-01 (to cover all 10000 sample records);select part_dt, sum(price) as total_sold, count(distinct seller_id) as sellers from kylin_sales group by part_dt order by part_dt
6.You can verify the query result and compare the response time with Hive;
Kylin provides a script for streaming sample Cube also. This script will create a Kafka topic and send random messages constantly to the generated topic.
${KYLIN_HOME}/bin/sample.sh, it will generate Table DEFAULT.KYLIN_STREAMING_TABLE, Model kylin_streaming_model, Cube kylin_streaming_cube in learn_kylin project.${KYLIN_HOME}/bin/sample-streaming.sh, it will create Kafka Topic kylin_streaming_topic into the localhost:9092 broker. It also sends the random 100 messages into Kylin_streaming_topic per second.kylin_streaming_cube build.select count(*), HOUR_START from kylin_streaming_table group by HOUR_START
7.Verify the query result.
You can create another Cube with the sample tables, by following the tutorials.