启动dfs报错hadoop: ssh: Could not resolve hostname hadoop: Name or service not known
场景:
Hadoop版本:2.6.0
Linux版本:CentOS 7.3
启动伪分布式Hadoop2.6.0报错
[hadoop@h2_6 ~]$ start-dfs.sh
19/03/30 18:02:06 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 [hadoop]
hadoop: ssh: Could not resolve hostname hadoop: Name or service not known
The authenticity of host 'localhost (::1%1)' can't be established.
ECDSA key fingerprint is SHA256:Qtm1VfRTAGZrGdXt3Qcwp8IwFAh2VPObwfEPunM+NE8.
ECDSA key fingerprint is MD5:1a:c5:da:2c:de:20:a2:de:5a:7d:1f:58:9c:87:1e:f9.
Are you sure you want to continue connecti