徹底解決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 問題解決,所以還是要提前看一下啊

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM