美文网首页
安装CDH找不到java_home的错误

安装CDH找不到java_home的错误

作者: elwyn_you | 来源:发表于2020-06-11 18:45 被阅读0次

    以前没有注意这个问题,我们用tar包自己解压安装jdk的时候,应该要安装到/usr/java目录下,没有就新建.

    这样就不会报错了,否则在安装hive,oozie 检测mysql连接的时候会报错.后面安装zookeeper也会有错.

    最好的解决办法是用rpm包安装jdk

    2017-12-04 19:46:06,768 INFO CommandPusher:com.cloudera.cmf.model.DbCommand: Command 75(OozieTestDatabaseConnection) has completed. finalstate:FINISHED, success:false, msg:Unexpected error. Unable to verify database connection.

    2017-12-04 19:46:06,808 INFO CommandPusher:com.cloudera.cmf.service.AbstractOneOffHostCommand: Unsuccessful 'HiveTestDatabaseConnection'

    2017-12-04 19:46:06,808 INFO CommandPusher:com.cloudera.cmf.service.AbstractDbConnectionTestCommand: Command exited with code: 1

    2017-12-04 19:46:06,808 INFO CommandPusher:com.cloudera.cmf.service.AbstractDbConnectionTestCommand: ++ ls -rvd '/usr/lib/jvm/j2sdk1.6-oracle/jre*'

    + for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'

    ++ ls -rvd '/usr/java/jdk1.6*'

    + for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'

    ++ ls -rvd '/usr/java/jre1.6*'

    + for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'

    ++ ls -rvd '/Library/Java/Home*'

    + for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'

    ++ ls -rvd '/usr/java/default*'

    + for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'

    ++ ls -rvd '/usr/lib/jvm/default-java*'

    + for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'

    ++ ls -rvd '/usr/lib/jvm/java-openjdk*'

    + for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'

    ++ ls -rvd '/usr/lib/jvm/jre-openjdk*'

    + for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'

    ++ ls -rvd '/usr/lib/jvm/java-1.7.0-openjdk*'

    + for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'

    ++ ls -rvd '/usr/lib/jvm/java-7-openjdk*'

    + for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'

    ++ ls -rvd '/usr/lib/jvm/java-1.8.0-openjdk*'

    + for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'

    ++ ls -rvd '/usr/lib/jvm/java-8-openjdk*'

    + for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'

    ++ ls -rvd '/usr/lib/jvm/java-1.6.0-openjdk*'

    + for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'

    ++ ls -rvd '/usr/lib/jvm/jre-1.6.0-openjdk*'

    + verify_java_home

    + '[' -z '' ']'

    + cat

    +======================================================================+

    | 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. |

    +======================================================================+

    + exit 1

    ————————————————

    相关文章

      网友评论

          本文标题:安装CDH找不到java_home的错误

          本文链接:https://www.haomeiwen.com/subject/jqxazhtx.html