hadoop大佬进来看看。。。。。。。求助解答!

[root@hadoop1 sbin]# start-dfs.sh
17/12/01 22:08:31 WARN hdfs.DFSUtil: Namenode for null remains unresolved for ID null. Check your hdfs-site.xml file to ensure namenodes are configured properly.
Starting namenodes on [hadoop01]
hadoop01: ssh: Could not resolve hostname hadoop01: Temporary failure in name resolution
hadoop启动老是报这个,不知道为啥?求解?

图片说明
在虚拟机里可以,而用shh老是出现报上面的错

你去/etc/hosts加下hadoop01的别名

[root@hadoop1 etc]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.74.132 hadoop1
127.0.0.1 hadoop1
[root@hadoop1 etc]# cd /etc/sysconfig/network
-bash: cd: /etc/sysconfig/network: 不是目录
[root@hadoop1 etc]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=hadoop1
[root@hadoop1 etc]#
这个嘛!加了的

话说你的etc/hosts里的HOSTNAME=hadoop1,是不写错了啊,应该是hadoop01,和core-site.xml文件中fs.default.name中主机名是一样的才行,还有要配置免密码登录

应该是hdfs-site.xml配置不对
参考:https://blog.csdn.net/dzh284616172/article/details/105980074

img


大佬我这个安装路径没错啊,怎么回事,启动集群一直提示没找到命令