retry.RetryInvocationHandler (RetryInvocationHandler.java:invoke(140)) - Exception while invoking getFileInfo of class ClientNamenodeProtocolTranslatorPB over bdata236/192.168.1.236:9000 after 3 fail


报错信息如下

2017-12-20 12:29:09,161 INFO  [main]: retry.RetryInvocationHandler (RetryInvocationHandler.java:invoke(140)) 
- Exception while invoking getFileInfo of class ClientNamenodeProtocolTranslatorPB over bdata236/192.168.1.236:9000
after 3 fail over attempts. Trying to fail over after sleeping for 5584ms. org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyException): Operation category READ is not supported in state standby at org.apache.hadoop.hdfs.server.namenode.ha.StandbyState.checkOperation(StandbyState.java:87) at org.apache.hadoop.hdfs.server.namenode.NameNode$NameNodeHAContext.checkOperation(NameNode.java:1719)
  • 我出现这个问题的原因是两个namenode都是standby状态,发现是因为zkfc没有起来,启动zkfc就OK了。

  进入hadoop/bin目录下

 ./hadoop-daemon.sh start zkfc

 

  • 还有可能是因为防火墙问题,关闭即可
service iptables stop  (centos6)

systemctl stop firewalld(centos7)

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM