1.具体错误信息如下:
[root@hadoop102 kylin]# bin/kylin.sh start
Retrieving hadoop conf dir..
/opt/module/kylin/bin/find-hadoop-conf-dir.sh: line 33: hbase: command not found
KYLIN_HOME is set to /opt/module/kylin
Please make sure the user has the privilege to run hbase shell
2.排查思路:
(1) 日志
想通过Kylin的日志解决,所以查看了kylin.log文件,
可能由于kylin未启动起来,所以并没有输出信息。
(2) 源码
日志这条路作废,只能改走源码这条路。查看check-env.sh源码如下:
source $(cd -P -- "$(dirname -- "$0")" && pwd -P)/header.sh
## ${dir} assigned to $KYLIN_HOME/bin in header.sh
source ${dir}/find-hadoop-conf-dir.sh
if [ -z "${kylin_hadoop_conf_dir}" ]; then
hadoop_conf_param=
else
hadoop_conf_param="--config ${kylin_hadoop_conf_dir}"
fi
if [ -z "$KYLIN_HOME" ]
then
quit 'Please make sure KYLIN_HOME has been set&#