Kylin安装
- 从官网下载 apache-kylin-2.0.0-bin-cdh57.tar.gz 放到每台需要安装kylin 服务的机器
[hadoop@hadoop3 cdh5.12.0]$ sudo tar -zxvf apache-kylin-2.0.0-bin-cdh57.tar.gz -C /opt/
[hadoop@hadoop3 opt]$ sudo chown -R hdfs:hdfs /opt/apache-kylin-2.0.0-bin/
[hadoop@hadoop3 apache-kylin-2.0.0-bin]$ sudo ln -s /opt/apache-kylin-2.0.0-bin/ /opt/kylin
- 配置环境变量
[hadoop@hadoop3 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
[hadoop@hadoop3 bin]$ source ~/.bashrc
- 启动服务
[hadoop@hadoop3 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
执行:
[hadoop@hadoop3 bin]$ ./sample.sh
需要重启服务才能看到web ui上看到项目