CDH5.12整合Kylin2.1

大憨熊 提交于 2020-03-01 05:10:41

1. 获取安装包

    http://kylin.apache.org/download/

    下载:apache-kylin-2.1.0-bin-cdh57.tar.gz

    上传:/opt

    解压:tar zxvf apache-kylin-2.1.0-bin-cdh57.tar.gz

2. 配置环境变量

    vi /etc/profile

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/profile

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 (大写)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!