Kylin CDH安装

Posted lingluo2017

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Kylin CDH安装相关的知识,希望对你有一定的参考价值。

Kylin安装

  1. 从官网下载 apache-kylin-2.0.0-bin-cdh57.tar.gz 放到每台需要安装kylin 服务的机器

[[email protected] cdh5.12.0]$ sudo tar -zxvf apache-kylin-2.0.0-bin-cdh57.tar.gz -C /opt/

[[email protected] opt]$ sudo chown -R hdfs:hdfs /opt/apache-kylin-2.0.0-bin/

[[email protected] apache-kylin-2.0.0-bin]$ sudo ln -s /opt/apache-kylin-2.0.0-bin/ /opt/kylin

  1. 配置环境变量

[[email protected] kylin]$ vi ~/.bashrc

#added by HBase

export HBASE_HOME=/opt/cloudera/parcels/CDH/lib/hbase

export PATH=$HBASE_HOME/bin:$PATH

 

#added by HCat

export HCAT_HOME=/opt/cloudera/parcels/CDH/lib/hive-hcatalog

 

#added by spark

export SPARK_HOME=/opt/cloudera/parcels/CDH/lib/spark

 

 

# added for Kylin

export KYLIN_HOME=/opt/kylin

 

#added by java

export JAVA_HOME=/usr/java//latest

 

[[email protected] bin]$ source ~/.bashrc

  1. 启动服务

[[email protected] bin]$ ./kylin.sh start

Retrieving hadoop conf dir...

KYLIN_HOME is set to /opt/kylin

Retrieving hive dependency...

Retrieving hbase dependency...

Retrieving hadoop conf dir...

Retrieving kafka dependency...

Retrieving Spark dependency...

KYLIN_JVM_SETTINGS is -Xms1024M -Xmx4096M -Xss1024K -XX:MaxPermSize=128M -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:/opt/kylin/logs/kylin.gc.31483 -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=64M

 

A new Kylin instance is started by hadoop. To stop it, run ‘kylin.sh stop‘

Check the log at /opt/kylin/logs/kylin.log

Web UI is at http://<hostname>:7070/kylin

  1. 访问kylin web ui
    http://hadoop3:7070/kylin
    默认账号: ADMIN / KYLIN (密码为大写)
  2. Sample Cube测试
    sample 数据位于: /opt/kylin/sample_cube
    执行:

[[email protected] bin]$ ./sample.sh

需要重启服务才能看到web ui上看到项目

 

以上是关于Kylin CDH安装的主要内容,如果未能解决你的问题,请参考以下文章

大数据安全Apache Kylin 安全配置(Kerberos)

CDH+Kylin三部曲之二:部署和设置

Kylin——CDH

基于CDH5.7.x Kylin部署

Kylin与CDH兼容性剖析

大数据Kylin:Kylin安装使用