zoukankan      html  css  js  c++  java
  • 彻底解决CDH5.12安装过程中 Error: JAVA_HOME is not set and Java could not be found

    1 详细报错

    + 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
    [root@hadoop0

    2 把之前的jdk安装目录放在/usr/java上

    重新编辑环境变量

     vim /etc/profile

    #set Java
    export JAVA_HOME=/usr/java/jdk1.8.0_201
    export PATH=.:$JAVA_HOME/bin:$PATH  
    

      

    source  /etc/profile

    3 问题解决,所以还是要提前看一下啊

  • 相关阅读:
    gan研究思路
    官方文档的学习
    构建Pytorch虚拟环境
    桌面显示【我的电脑】
    【VUE】计数器模块
    【品优购】字体图标定位的做法
    029垃圾分代回收机制
    03特殊for语句
    28包 package
    jdk特性
  • 原文地址:https://www.cnblogs.com/QuestionsZhang/p/10436567.html
Copyright © 2011-2022 走看看