kylin

kylin笔记
1.版本信息
jdk1.8.0_201
hadoop-2.7.7
apache-hive-1.2.2-bin
hbase-1.4.12
zookeeper-3.4.14
kylin-2.5.1

2.下载kylin
网页:https://archive.apache.org/dist/kylin/
wget https://archive.apache.org/dist/kylin/apache-kylin-2.5.1/apache-kylin-2.5.1-bin-hbase1x.tar.gz

3.解压
tar -zxf apache-kylin-2.5.1-bin-hbase1x.tar.gz -C /home/hadoop
mv /home/hadoop/apache-kylin-2.5.1-bin-hbase1x /home/hadoop/kylin-2.5.1

4.配置~/.bashrc
export ZOOKEEPER_HOME=/home/hadoop/zookeeper-3.4.14
export JAVA_HOME=/home/hadoop/jdk1.8.0_201
export HADOOP_HOME=/home/hadoop/hadoop-2.7.7
export HIVE_HOME=/home/hadoop/apache-hive-1.2.2-bin
export SQOOP_HOME=/home/hadoop/sqoop-1.4.7.bin__hadoop-2.6.0
export MAVEN_HOME=/home/hadoop/apache-maven-3.6.2
export OOZIE_HOME=/home/hadoop/oozie-4.3.1
export HBASE_HOME=/home/hadoop/hbase-1.4.12

export HIVE_CONF_DIR=${HIVE_HOME}/conf
export HCAT_HOME=$HIVE_HOME/hcatalog
export KYLIN_HOME=/home/hadoop/kylin-2.5.1
export hive_dependency=$HIVE_HOME/conf:$HIVE_HOME/lib/*:$HCAT_HOME/share/hcatalog/hive-hcatalog-core-1.2.2.jar

export PATH=$PATH:$ZOOKEEPER_HOME/bin:$JAVA_HOME/bin:$HADOOP_HOME/bin
export PATH=$PATH:$HADOOP_HOME/sbin:$HIVE_HOME/bin:$SQOOP_HOME/bin
export PATH=$PATH:$MAVEN_HOME/bin:$OOZIE_HOME/bin:$HBASE_HOME/bin
export PATH=$PATH:$KYLIN_HOME/bin

5.把hadoop下面的xml拷贝到kylin的conf目录下
cp /home/hadoop/hadoop-2.7.7/etc/hadoop/{core-site.xml,mapred-site.xml,yarn-site.xml} /home/hadoop/kylin-2.5.1/conf/

6.Hive报错:org/apache/hadoop/hive/conf/HiveConf
修改kylin.sh
export HBASE_CLASSPATH_PREFIX=${KYLIN_HOME}/conf:${KYLIN_HOME}/lib/*:${KYLIN_HOME}/ext/*:${HBASE_CLASSPATH_PREFIX}:${hive_dependency}

7.启动
bin/kylin.sh start

8.停止
bin/kylin.sh stop

9.访问地址
http://hadoop01:7070/kylin
用户名:ADMIN
密码:KYLIN
12-15 03:00