Hadoop Timed out waiting 20000ms
今天发现测试环境Hadoop集群开始频繁宕掉,查看namenode日志发现有如下报错信息:
1 | java.io.IOException: Timed out waiting 20000ms for a quorum of nodes to respond. |
原因是因为namenode与journalnode通信时,超过20000ms,触发了默认设置的超时时长,解决办法:
在hdfs-site.xml
中加入如下配置
1 | <property> |
在core-site.xml
中加入如下配置:
1 | <property> |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment