Kylin安装
- 从官网下载 apache-kylin-2.0.0-bin-cdh57.tar.gz 放到每台需要安装kylin 服务的机器
[[email protected] cdh5.12.0]$ sudo tar -zxvf apache-kylin-2.0.0-bin-cdh57.tar.gz -C /opt/
[[email protected] opt]$ sudo chown -R hdfs:hdfs /opt/apache-kylin-2.0.0-bin/
[[email protected] apache-kylin-2.0.0-bin]$ sudo ln -s /opt/apache-kylin-2.0.0-bin/ /opt/kylin
- 配置环境变量
[[email protected] kylin]$ vi ~/.bashrc
#added by HBase
export HBASE_HOME=/opt/cloudera/parcels/CDH/lib/hbase
export PATH=$HBASE_HOME/bin:$PATH
#added by HCat
export HCAT_HOME=/opt/cloudera/parcels/CDH/lib/hive-hcatalog
#added by spark
export SPARK_HOME=/opt/cloudera/parcels/CDH/lib/spark
# added for Kylin
export KYLIN_HOME=/opt/kylin
#added by java
export JAVA_HOME=/usr/java//latest
[[email protected] bin]$ source ~/.bashrc
- 启动服务
[[email protected] bin]$ ./kylin.sh start
Retrieving hadoop conf dir...
KYLIN_HOME is set to /opt/kylin
Retrieving hive dependency...
Retrieving hbase dependency...
Retrieving hadoop conf dir...
Retrieving kafka dependency...
Retrieving Spark dependency...
KYLIN_JVM_SETTINGS is -Xms1024M -Xmx4096M -Xss1024K -XX:MaxPermSize=128M -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:/opt/kylin/logs/kylin.gc.31483 -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=64M
A new Kylin instance is started by hadoop. To stop it, run ‘kylin.sh stop‘
Check the log at /opt/kylin/logs/kylin.log
Web UI is at http://<hostname>:7070/kylin
- 访问kylin web ui
http://hadoop3:7070/kylin
默认账号: ADMIN / KYLIN (密码为大写) - Sample Cube测试
sample 数据位于: /opt/kylin/sample_cube
执行:
[[email protected] bin]$ ./sample.sh
需要重启服务才能看到web ui上看到项目