Hadoop格式化HDFS报错java.net.UnknownHostException: localhost.localdomain: localhost.localdomain
异常描述在对HDFS格式化,执行hadoopnamenode-format命令时,出现未知的主机名的问题,异常信息如下所示:[plain]viewplaincopy[shirdrn@localhostbin]$hadoopnamenode-format11/06/2207:33:31INFOnamenode.NameNode:STARTUP_MSG:/***********************