大数据运维(39)Kylin 3.1.0集群部署
安装kylin之前先安装如下:
Hadoop: 2.7+, 3.1+ (since v2.5)
Hive: 0.13 – 1.2.1+
HBase: 1.1+, 2.0 (since v2.5)
Spark (可选) 2.3.0+
Kafka (可选) 1.0.0+ (since v2.5)
JDK: 1.8+ (since v2.5)
OS: Linux only, CentOS 6.5+ or Ubuntu 16.0.4+
下载地址:
1
|
https: //kylin .apache.org /download/
|
下载安装包:
1
|
wget https: //mirrors .tuna.tsinghua.edu.cn /apache/kylin/apache-kylin-3 .1.0 /apache-kylin-3 .1.0-bin-hbase1x. tar .gz
|
解压安装:
1
2
3
|
tar -xf apache-kylin-3.1.0-bin-hbase1x. tar .gz -C /usr/local/
cd /usr/local/
ln -sv apache-kylin-3.1.0-bin-hbase1x/ kylin
|
设置环境变量:
1
2
3
4
|
cat > /etc/profile .d /kylin .sh << EOF
export KYLIN_HOME= /usr/local/kylin
export PATH=\$PATH:\$KYLIN_HOME /bin
EOF |
修改配置:
1
2
3
4
5
|
vim /usr/local/kylin/conf/kylin .properties
kylin.metadata.url=kylin_metadata@hbase kylin.server.mode=all kylin.server.cluster-servers=hadoop-master:7070,hadoop-node1:7070,hadoop-node2:7070 |
复制配置到其他节点:
1
|
scp ./* root@hadoop-node1: /usr/local/kylin/conf/
|
修改属组属主:
1
|
chown -R hadoop.hadoop /usr/local/kylin/ /usr/local/kylin
|
检查配置:使用自带的脚本检查环境变量。
1
2
|
su hadoop
/usr/local/kylin/bin/check-env .sh
|
启动命令:初始密码为ADMIN/KYLIN,都是大写。
1
2
3
4
5
|
~]$ kylin.sh start ... A new Kylin instance is started by hadoop. To stop it, run \'kylin.sh stop\'
Check the log at /usr/local/kylin/logs/kylin .log
Web UI is at http: //hadoop-master :7070 /kylin
|
停止命令:
1
2
3
|
~]$ kylin.sh stop
Stopping Kylin: 24683 Kylin with pid 24683 has been stopped. |
查看运行的进程:
1
2
3
|
]$ jps 7470 RunJar ... |
web页面:
1
|
http: //192 .168.0.54:7070 /kylin/models
|