|NO.Z.00005|——————————|BigDataEnd|——|Hadoop&OLAP_Kylin.V05|——|Kylin.v05|Kylin构建Cube|按日期维度构建cube.V2|
一、按日期维度构建cube:
### --- 按日期维度构建cube:
~~~ 创建项目(Project)
~~~ 输入项目名称


二、创建数据源
### --- 创建数据源
~~~ 创建数据源(DataSource)



三、创建模型(Model)选择new model
### --- 创建模型(Model)选择new model
~~~ 选择New Model
~~~ 指定模型名称
~~~ 选择事实表
~~~ 选择维度
~~~ 指定度量
~~~ 指定分区和过滤条件
~~~ 创建的模型Models







四、创建立方体(Cube)
### --- 创建立方体(Cube)
~~~ 新建Cube
~~~ 选择数据模型&给定Cube名称
~~~ 指定维度
~~~ 指定度量
~~~ 指定刷新设置
~~~ 高级设置
~~~ 配置覆盖
~~~ 概述










五、执行构建(Build)
### --- 执行构建(Build)
~~~ 执行构建cube
~~~ 监控状态
~~~ 等待cube构建完成
~~~ 等待cube构建完成




六、执行SQL语句分析
### --- 执行sql
### --- 执行SQL流程
~~~ # 在Insight:New Query选项卡中,执行以下SQL语句:
select date1,
sum(price) as total_money,
sum(amount) as total_amount
from dw_sales
group by date1;

Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
——W.S.Landor
浙公网安备 33010602011771号