Hadoop格式化HDFS报错java.net.UnknownHostException: localhost.localdomain: localhost.localdomain
SHUTDOWN_MSG:ShuttingdownNameNodeatjava.net.UnknownHostException:datanode:datanode:unknownerror如果忽略该错误启动DFS,会发现datanode无法正常启动。原因: hadoop在格局化HDFS的时辰,经由过程hostname号令获取到的主机名在/etc/hosts文件中进行映射的时辰,没有找到,也