1. 获取安装包
http://kylin.apache.org/download/
下载:apache-kylin-2.1.0-bin-cdh57.tar.gz
上传:/opt
解压:tar zxvf apache-kylin-2.1.0-bin-cdh57.tar.gz
2. 配置环境变量
vi /etc/profile
export KYLIN_HOME=/opt/apache-kylin-2.1.0-bin-cdh57
export HADOOP_HOME=/opt/cloudera/parcels/CDH-5.12.0-1.cdh5.12.0.p0.29
export HBASE_HOME=/opt/cloudera/parcels/CDH-5.12.0-1.cdh5.12.0.p0.29/lib/hbase
export HIVE_HOME=/opt/cloudera/parcels/CDH-5.12.0-1.cdh5.12.0.p0.29/lib/hive
export HIVE_CONF=/opt/cloudera/parcels/CDH-5.12.0-1.cdh5.12.0.p0.29/lib/hive/conf
export HADOOP_CMD=/opt/cloudera/parcels/CDH-5.12.0-1.cdh5.12.0.p0.29/lib/hadoop/bin/hadoop
source /etc/profile
3. 配置Kylin
vi /opt/apache-kylin-2.1.0-bin-cdh57/conf/kylin.properties
##配置文件结尾添加
kylin.rest.servers=192.168.252.143:7070
kylin.job.jar=/tmp/kylin/kylin-job-1.6.0.jar
kylin.coprocessor.local.jar=/tmp/kylin/kylin-coprocessor-1.6.0.jar
复制jar包到目录(mkdir /tmp/kylin)
cp /opt/apache-kylin-2.1.0-bin-cdh57/lib/kylin-coprocessor-1.6.0.jar /tmp/kylin/
cp /opt/apache-kylin-2.1.0-bin-cdh57/lib/kylin-job-1.6.0.jar /tmp/kylin/
4. 检查环境
/opt/apache-kylin-2.1.0-bin-cdh57/bin/check-env.sh
5. 启动
/opt/apache-kylin-2.1.0-bin-cdh57/bin/kylin.sh start
访问WEB界面:
http://192.168.252.143:7070/kylin 帐密:ADMIN/KYLIN (大写)
来源:oschina
链接:https://my.oschina.net/u/2812496/blog/1540489