解压安装包
[root@hadoop106 install]# tar -zxvf apache-kylin-3.0.2-bin.tar.gz -C /opt/module
重命名
[root@hadoop106 module]# mv apache-kylin-3.0.2-bin/ kylin
路径
[root@hadoop106 kylin]# pwd
/opt/module/kylin
修改文件
[root@hadoop106 kylin]# cd ./bin/
[root@hadoop106 bin]# vim ./find-spark-dependency.sh
spark_dependency=`find -L $spark_home/jars -name '*.jar' ! -name '*jackson*' ! -name '*metastore*' ! -name '*calcite*' ! -name '*doc*' ! -name '*test*' ! -name '*sources*' ''-printf '%p:' | sed 's/:$//'`
配置环境变量并且source一下
[root@hadoop106 bin]# vi /etc/profile
#Kylin
export KYLIN_HOME=/opt/module/kylin
export PATH=$PATH:$KYLIN_HOME/bin
source一下
[root@hadoop106 bin]# source /etc/profile
启动kylin之前,先启动Hadoop(hdfs、yarn、jobhistoryserver)、Zookeeper、HBase
[root@hadoop106 bin]# start-all.sh
[root@hadoop106 bin]# mr-jobhistory-daemon.sh start historyserver
[root@hadoop106 bin]# zkServer.sh start
[root@hadoop106 bin]# start-hbase.sh
[root@hadoop106 bin]# jps
6432 HMaster
6896 Jps
4081 ResourceManager
4356 NodeManager
6229 QuorumPeerMain
6583 HRegionServer
3912 SecondaryNameNode
3502 NameNode
6126 JobHistoryServer
3631 DataNode
启动kylin
[root@hadoop106 bin]# kylin.sh start
A new Kylin instance is started by root. To stop it, run 'kylin.sh stop'
Check the log at /opt/module/kylin/logs/kylin.log(麒麟日志)
Web UI is at http://hadoop106:7070/kylin
登录kylin页面 http://hadoop106:7070/kylin
账号 ADMIN 密码 KYLIN
关闭kylin
[root@hadoop106 bin]# kylin.sh stop
————————————————
原文链接:https://blog.csdn.net/tiantang2renjian/article/details/124826734