详细报错如下:
19/11/21 05:38:14 WARN hdfs.DFSClient: Failed to connect to /x.x.x.x:50010 for block, add to deadNodes and continue. java.io.IOException: Connection reset by peer
java.io.IOException: Connection reset by peer
hdfs日志发现如下提示:
2019-11-21 03:40:01,572 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: xxxx:50010:DataXceiverServer:
java.io.IOException: Xceiver count 4097 exceeds the limit of concurrent xcievers: 4096
at org.apache.hadoop.hdfs.server.datanode.DataXceiverServer.run(DataXceiverServer.java:140)
at java.lang.Thread.run(Thread.java:745)
需要调整参数dfs.datanode.max.xcievers:
dfs.datanode.max.xcievers对于datanode来说,就如同linux上的文件句柄的限制,当datanode 上面的连接数操作配置中的设置时,datanode就会拒绝连接。
一般都会将此参数调的很大,40000+左右。