CDH5.12安装检查Inspector failed on the following hosts...

1 安装检查报错

 

2 原因是因为自己的文件没有全部同步过去

hadoop003文件下面缺少了cm文件夹的内容

 

3 cp过去

 scp -r cm root@hadoop003:/var/www/html 

 

还有mysql的驱动也同步cp过去

 scp mysql-connector-java.jar root@hadoop002:/usr/share/java/
 scp mysql-connector-java.jar root@hadoop003:/usr/share/java/

  

4 重新run

 

 结果还是不行

 

 

 

 

5 最后发现日志文件

/run/cloudera-scm-agent/process

ls

找到数字最大的文件夹

cd  98-host-inspector
cd logs
cat stderr.log

  发现原因是cdh找不到JAVA_HOME

=====================================================================+
| Error: JAVA_HOME is not set and Java could not be found |
+----------------------------------------------------------------------+
| Please download the latest Oracle JDK from the Oracle Java web site |
| > http://www.oracle.com/technetwork/java/javase/index.html < |
| |
| Cloudera Manager requires Java 1.6 or later. |
| NOTE: This script will find Oracle Java whether you install using |
| the binary or the RPM based installer. |
+======================================================================+

随后设置了所有启动脚本的JAVA_HOME

 vim /etc/rc.d/init.d/cloudera-scm-agent

添加

export JAVA_HOME=/mnt/software/jdk1.8.0_201  

还是无效,然后查看另外一个日志发现

 cat stdout.log 

下面这个脚本才是执行脚本

 /usr/lib64/cmf/service/mgmt/mgmt.sh

然后在所有机器上执行编辑脚本命令,添加JAVA_HOME

 vim  /usr/lib64/cmf/service/mgmt/mgmt.sh 

export JAVA_HOME=/mnt/software/jdk1.8.0_201

  

 

 

然后 run again,通过

 

 

 

  

posted @ 2019-02-25 22:24  Questions张  阅读(1197)  评论(0编辑  收藏  举报