1.软件版本介绍:
CDH5.14.2
Kylin: 2.3.1
2.环境检测
已部署HBase, Hive, Yarn并启动。
3. CDH版本kylin2.3.0下载软件
http://mirrors.hust.edu.cn/apache/kylin/apache-kylin-2.3.0/apache-kylin-2.3.0-cdh57-bin.tar.gz
4. 创建目录
mkdir /usr/local/apps
cd /usr/local/apps
5. 上传并解压/usr/local/apps目录:
[root@cdh01 apps]# tar -zxf apache-kylin-2.3.0-cdh57-bin.tar.gz
6. 建立软连接
[root@cdh01 apps]# ln -s apache-kylin-2.3.0-cdh57-bin kylin
7. 添加环境变量
export KYLIN_HOME=/usr/local/apps/kylin
8. 环境变量生效
[root@cdh01 apps]# source /etc/profile
9. 修改kylin.properties配置文件
修改:
kylin.server.cluster-servers=10.50.34.4:7070
添加配置:
kylin.job.jar=/usr/local/apps/kylin/lib/kylin-job-2.3.1.jar
kylin.coprocessor.local.jar=/usr/local/apps/kylin/lib/kylin-coprocessor-2.3.1.jar
kylin.job.yarn.app.rest.check.status.url=http://10.50.34.4:8088/ws/v1/cluster/apps/${job_id}?anonymous=true
10. 检查
[root@cdh01 bin]# cd /usr/local/apps/kylin/bin
[root@cdh01 bin]# ./check-env.sh
Retrieving hadoop conf dir...
KYLIN_HOME is set to /usr/local/apps/kylin
[root@cdh01 bin]# hdfs dfs -ls /
drwxr-xr-x - root supergroup 0 2017-09-01 10:23 /kylin
[root@cdh01 bin]# ./find-hbase-dependency.sh
Retrieving hbase dependency...
[root@cdh01 bin]# ./find-hive-dependency.sh
Retrieving hive dependency...
11. 启动kylin
[root@cdh01 kylin]# bin/kylin.sh start
12. 查看kylinUI日志
[root@cdh01 kylin]# tail 200 -f logs/kylin.out
13. 登陆kylin
http://10.50.34.4:7070/kylin/login
User: ADMIN
Pass: KYLIN