Exception while invoking getStats of class ClientNamenodeProtocolTranslatorPB over 故障分析
来源:互联网 发布:闹钟软件哪个好 编辑:程序博客网 时间:2024/05/23 10:43
在执行 hdfs dfsadmin -report 命令时,出现故障Exception while invoking getStats of class ClientNamenodeProtocolTranslatorPB over ,在查阅log记录时发现
java.net.SocketTimeoutException: Call From clusternode***to clusternode***9000 failed on socket timeout exception: java.net.SocketTim
eoutException: 20000 millis timeout while waiting for channel to be ready for read. ch : java.nio.channels.SocketChannel[connected local=/***
:40878 remote=clusternode***9000]; For more details see: http://wiki.apache.org/hadoop/SocketTimeout
显然是namenode出现了问题,
分别在两台互为HA、运行namenode进程的设备上运行
./bin/hdfs haadmin -getServiceState nn1
./bin/hdfs haadmin -getServiceState nn1
显示的状态均为standby,找到了产生错误的原因,解决就方便了,执行
haadmin -transitionToActive --forcemanual nn1
强行指定其中一个namenode节点的状态为Active,问题解决,执行hdfs dfsadmin -report可以正常报告节点状态,但是这是什么原因的造成的呢?
分析下来,应该是重启hadoop集群时,直接运行start-all.sh造成,重启集群时应该要根据配置文件hdfs-site.xml和yarn-site.site,尤其是hdfs-site.xml,根据该文件的配置,需要在配置文件中指明节点上先行执行 hadoop-daemon.sh start journalnode,启动JournalNode,然后在namenode节点上启动NameNode,这样就不会出现上面的问题了
- Exception while invoking getStats of class ClientNamenodeProtocolTranslatorPB over 故障分析
- java axis调用cxf 的坑object is not an instance of declaring class while invoking public
- 异常笔记(2)--object is not an instance of declaring class while invoking public abstract java.lang.Long
- Exception while invoking! org.apache.thrift.protocol.TProtocolException: Bad version in readMessageB
- Exception creating bean of class "loginForm
- Exception String: Error in invoking target ‘agent nmo nmb’ of makefile CentOS 64位安装Oracle 10g 报错
- exception class
- Exception creating bean of class org.apache.struts.action.DynaActionFrom:
- 关于struts的bug Exception creating bean of class
- Terminating app due to uncaught exception of class '_NSZombie_NSException'
- Exception creating bean of class com.xxc.personForm: {1}
- Exception sending context initialized event to listener instance of class
- Exception sending context initialized event to listener instance of class
- Exception sending context initialized event to listener instance of class
- Exception sending context initialized event to listener instance of class
- invoking
- [struts]异常Caught Exception while registering Interceptor class org.crazyit.auction.action.intercepto
- SSH中添加自定义拦截器报错:Caught Exception while registering Interceptor class,注册时出错
- mysql 行级锁的使用以及死锁的预防
- C语言基础知识点(二)三大控制结构
- 叶子结点带权路径长度和(先序遍历法和层序遍历法)
- 好听的英文网名
- 语法,句群,语篇
- Exception while invoking getStats of class ClientNamenodeProtocolTranslatorPB over 故障分析
- leetcode8
- tcp四种定时器
- redirectAttributes的用法以及相关配置
- log4j.properties 详解与配置步骤 -yellowcong
- C语言合法标识符
- 欢迎使用CSDN-markdown编辑器
- jquery源码解析之遍历同胞(上)
- CI框架中的site_url()与base_url()