集群规划
在这里插入图片描述
我安装之前其他软件已经正常的配置,本教程只介绍Kylin安装配置
解压包

[root@Linux122 servers]# tar -zxvf apache-kylin-3.1.1-bin-hbase1x.tar.gz

环境变量添加

#Kylin
export KYLIN_HOME=/opt/lagou/servers/kylin-3.1.1
export PATH=$PATH:$KYLIN_HOM/bin

软连接添加其他组件配置

ln -s /opt/lagou/servers/hadoop-2.9.2/etc/hadoop/hdfs-site.xml hdfs-site.xml
ln -s /opt/lagou/servers/hadoop-2.9.2/etc/hadoop/core-site.xml core-site.xml
ln -s /opt/lagou/servers/hbase-1.3.1/conf/hbase-site.xml hbase-site.xml
ln -s /opt/lagou/servers/hive-2.3.7/conf/hive-site.xml hive-site.xml
ln -s /opt/lagou/servers/spark-2.4.5/conf/spark-defaults.conf spark-defaults.conf

修改bin下脚本
vim kylin.sh在该脚本头部添加如下

export HADOOP_HOME=/opt/lagou/servers/hadoop-2.9.2
export HIVE_HOME=/opt/lagou/servers/hive-2.3.7
export HBASE_HOME=/opt/lagou/servers/hbase-1.3.1
export SPARK_HOME=/opt/lagou/servers/spark-2.4.5

通过bin下脚本检查环境是否有问题

[root@Linux122 bin]# ./check-env.sh 
Retrieving hadoop conf dir...
...................................................[PASS]
KYLIN_HOME is set to /opt/lagou/servers/kylin-3.1.1
Checking HBase
...................................................[PASS]
Checking hive
...................................................[PASS]
Checking hadoop shell
...................................................[PASS]
Checking hdfs working dir
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/lagou/servers/hadoop-2.9.2/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/lagou/servers/tez/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
...................................................[PASS]
Retrieving Spark dependency...
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/lagou/servers/hadoop-2.9.2/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/lagou/servers/tez/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/lagou/servers/hadoop-2.9.2/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/lagou/servers/tez/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
...................................................[PASS]
Retrieving Flink dependency...
Optional dependency flink not found, if you need this; set FLINK_HOME, or run bin/download-flink.sh
...................................................[PASS]
Retrieving kafka dependency...
...................................................[PASS]

Checking environment finished successfully. To check again, run 'bin/check-env.sh' manually.

如果有如下类似错误
在这里插入图片描述
启动各个组件服务
启动成功后启动kylin

[root@Linux122 bin]# ./kylin.sh start
...
A new Kylin instance is started by guchenfei. To stop it, run 'kylin.sh stop'
Check the log at /opt/lagou/servers/kylin-3.1.1/logs/kylin.log
Web UI is at http://Linux122:7070/kylin

表明启动成功
打开webUI
在这里插入图片描述

默认用户名密码
ADMIN
KYLIN

在这里插入图片描述

Logo

更多推荐