Apache Kylin安裝

image

依賴環境

Kylin2.1.0 + Hadoop2.7.1 + Hive2.1.1 + Hbase1.2.6java

Kylin下載地址:http://kylin.apache.org/cn/download/web

安裝

(1)下載apache-kylin-2.1.0-bin-hbase1x.tar.gzapache

tar -zxvf apache-kylin-2.1.0-bin-hbase1x.tar.gz

(2)修改環境變量vim

vim /etc/profile

export KYLIN_HOME=/opt/soft/kylin-2.2.0
export PATH=$KYLIN_HOME/bin:$PATH

source /etc/profile #使環境變量生效

(3)修改Kylin配置文件 conf/kylin.propertiestomcat

kylin.server.cluster-servers=Hadoop1:7070
kylin.job.jar=/opt/soft/kylin-2.2.0/lib/kylin-job-2.2.0.jar
kylin.coprocessor.local.jar=/opt/soft/kylin-2.2.0/lib/kylin-coprocessor-2.2.0.jar
kylin.job.yarn.app.rest.check.status.url=http://Hadoop1::7001/ws/v1/cluster/apps/${job_id}?anonymous=true


啓動

檢查配置:app

[root@Hadoop1 bin]# ./check-env.sh
Retrieving hadoop conf dir...
KYLIN_HOME is set to /usr/local/apps/kylin

[root@Hadoop1 bin]# hadoop fs -ls /
Found 8 items
drwxr-xr-x   - root  supergroup          0 2018-01-16 15:23 /kylin

[root@Hadoop1 bin]# ./find-hbase-dependency.sh
Retrieving hbase dependency...

[root@Hadoop1 bin]# ./find-hive-dependency.sh
Retrieving hive dependency...

啓動:ide

[root@Hadoop1 kylin]# bin/kylin.sh  start

#查看kylinUI日誌  
[root@Hadoop1 kylin]# tailf logs/kylin.out

#查看kylin server日誌
[root@Hadoop1 kylin]# tailf logs/kylin.log

 

登錄kylin

http://<ip>:7070/kylin
User: ADMIN #默認帳號名稱
Pass: KYLIN #默認密碼

web-ui看到下面的頁面,就表明安裝部署成功oop

 

出現問題

(1)首次啓動報的錯誤,FileNotFoundException (/tomcat/conf/.keystore)ui

java.io.FileNotFoundException: /opt/soft/kylin-2.1.0/tomcat/conf/.keystore(沒有那個文件或目錄)url

       at java.io.FileInputStream.open(Native Method)

去掉tomcat下的https

在kylin內置tomcat的server.xml中裏邊有個對https的支持沒啓用的話 註釋掉

先執行

./check-env.sh 檢查環境

若是沒問題執行

./kylin.sh start

啓動後若是構建cube的時候報找不到kylin.properties 的時候 須要將peoperties的配置文件中沒用到的選項所有註釋掉

(2)hive問題Could not connect to meta store using any of the URIs provided. Most recent failure: org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused (Connection refused)

解決方式:

nohup hive --service metastore & 
nohup hive --service hiveserver2 &

(4)hadoop:10020 鏈接失敗

解決: ./sbin/mr-jobhistory-daemon.sh start historyserver

易出現問題,配置參考 http://blog.csdn.net/longgelaile/article/details/78269719?locationNum=1&fps=1

相關文章
相關標籤/搜索