1. 獲取安裝包apache
http://kylin.apache.org/download/bash
下載:apache-kylin-2.1.0-bin-cdh57.tar.gzoop
上傳:/optrest
解壓:tar zxvf apache-kylin-2.1.0-bin-cdh57.tar.gzcode
2. 配置環境變量server
vi /etc/profilehadoop
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/profileclass
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 (大寫)