码迷,mamicode.com
首页 > 其他好文 > 详细

Kylin CDH安装

时间:2018-04-04 21:12:57      阅读:353      评论:0      收藏:0      [点我收藏+]

标签:min   cube   usr   source   port   安装   hdf   top   .sh   

Kylin安装

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

[hadoop@hadoop3 cdh5.12.0]$ sudo tar -zxvf apache-kylin-2.0.0-bin-cdh57.tar.gz -C /opt/

[hadoop@hadoop3 opt]$ sudo chown -R hdfs:hdfs /opt/apache-kylin-2.0.0-bin/

[hadoop@hadoop3 apache-kylin-2.0.0-bin]$ sudo ln -s /opt/apache-kylin-2.0.0-bin/ /opt/kylin

  1. 配置环境变量

[hadoop@hadoop3 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

 

[hadoop@hadoop3 bin]$ source ~/.bashrc

  1. 启动服务

[hadoop@hadoop3 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
    执行:

[hadoop@hadoop3 bin]$ ./sample.sh

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

 

Kylin CDH安装

标签:min   cube   usr   source   port   安装   hdf   top   .sh   

原文地址:https://www.cnblogs.com/lingluo2017/p/8718389.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!