HDFS集群启动start-dfs.sh报错
Posted areyouready
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HDFS集群启动start-dfs.sh报错相关的知识,希望对你有一定的参考价值。
[[email protected] 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
以上是关于HDFS集群启动start-dfs.sh报错的主要内容,如果未能解决你的问题,请参考以下文章
第一次部署Hadoop2.5.2集群,部署完后一切正常,但是当关闭后集群用start-dfs.sh重启h后namenode会都死掉
HDFS 报错: There are 0 datanode(s) running and 0 node(s) are excluded in this operation.