【Hadoop故障处理】高可用(HA)环境DataNode问题
【故障背景】
NameNode和DataNode进程正常运行,但是网页找不到DataNode,DataNode为空。各个节点机器之间可以ping同主机名。
【日志排查】
众多日志中找到如下关键点错误信息
ERROR org.apache.hadoop.hdfs.server.datanode.DataNode:
Initialization failed for Block pool BP-250248683-192.168.243.12-1528721295822(Datanode Uuid a29ff9e8-a055-422a-9cad-4b18f0df6bb2) service to bigdata12/192.168.243.12:9000
Call From bigdata14/192.168.243.14 to bigdata12:9000 failed on connection exception: java.net.ConnectException:
Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
【解决办法】
编辑/etc/sysconfig/network,设置主机名即可
如:
vi /etc/sysconfig/network
HOSTNAME=bigdata12