kylin 新版 dashbard 功能開啟
阿新 • • 發佈:2019-01-02
1.在 kylin.properties 中將一下配置開啟
kylin.server.query-metrics2-enabled=true
kylin.metrics.reporter-query-enabled=true
kylin.metrics.reporter-job-enabled=true
kylin.metrics.monitor-enabled=true
kylin.web.dashboard-enabled=true
這裡注意預設生成的元資料表 會新建名為kylin的庫儲存
如果想自己指定,增加一下配置:
kylin.metrics.prefix=dbname
2.建立SCSinkTools.json檔案
[
[
"org.apache.kylin.tool.metrics.systemcube.util.HiveSinkTool",
{
"storage_type": 2,
"cube_desc_override_properties": [
"java.util.HashMap",
{
"kylin.cube.algorithm": "INMEM",
"kylin.cube.max-building-segments": "1"
}
]
}
]
]
3.生成元資料
./bin/kylin.sh org.apache.kylin.tool.metrics.systemcube.SCCreator -inputConfig SCSinkTools.json -output ./kylin-metrics
4.建立hive的元資料表
hive -f <output_forder>/create_hive_tables_for_system_cubes.sql
5.新增元資料到hbase
./bin/metastore.sh restore <output_forder >
參考:
http://kylin.apache.org/cn/docs/tutorial/setup_systemcube.html