HDFS集群啟動start-dfs.sh報錯


[root@master sbin]# start-dfs.sh
Starting namenodes on [master]
master: Error: JAVA_HOME is not set and could not be found.
The authenticity of host 'localhost (::1)' can't be established.
ECDSA key fingerprint is e8:5a:7d:5c:e3:f7:57:4a:96:c2:65:d6:e9:39:d0:7d.
Are you sure you want to continue connecting (yes/no)? yes
localhost: Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
localhost: Error: JAVA_HOME is not set and could not be found.
Starting secondary namenodes [0.0.0.0]
The authenticity of host '0.0.0.0 (0.0.0.0)' can't be established.
ECDSA key fingerprint is e8:5a:7d:5c:e3:f7:57:4a:96:c2:65:d6:e9:39:d0:7d.
Are you sure you want to continue connecting (yes/no)? ^C0.0.0.0: Host key verification failed.

是因為hadoop不能找到自己設置的JAVA_HOME

需要在hadoop-env.sh 文件中增加
# export JAVA_HOME=你的java路徑

export JAVA_HOME=/root/hd/jdk1.8.0_121


免責聲明!

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



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