Operation category READ is not supported in state standby解决
2016-11-15 14:56
567 查看
hdfs写的那台机器是待机状态的,所以不支持,要在active 机器中写才行
再次访问就变一active,一个standy
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyException): Operation category READ is not supported in state standby
通过Web页面查看两个NameNode状态,均已经变成Standby,这让我很是奇怪,在自动故障恢复的集群配置下,竟然也会有全部变成备用的情况出现.
解决办法
./hdfs haadmin -transitionToActive --forcemanual nn1
再次访问就变一active,一个standy
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyException): Operation category READ is not supported in state standby
通过Web页面查看两个NameNode状态,均已经变成Standby,这让我很是奇怪,在自动故障恢复的集群配置下,竟然也会有全部变成备用的情况出现.
解决办法
我使用JPS检查了一下ZooKeeper集群的状态,发现没有任何征兆的失效了两个,原来是ZK的原因,于是重新启动ZK集群 然后重新启动ZKFailoverController(DFSZKFailoverController):没有这个角色存在,自然不会自动切换NameNode了 得到的教训,虽然NameNode通过HA机制,已经比Hadoop1可靠了,但是ZK集群一定要保证数量,我仅仅设置了三个节点的ZK集群,而ZK集群的可靠要保证:活动的ZK节点数量>(ZK节点总数-1)/2.所以,多多的设置ZK集群的节点才是王道
相关文章推荐
- Operation category READ is not supported in state standby解决办法
- Operation category READ is not supported in state standby解决
- org.apache.hadoop.ipc.RemoteExceptionOperation category READ is not supported in state standby解决办法
- 执行“hdfs dfs -ls /”出现“Operation category READ is not supported in state standby”报错解决
- 启动namenode,报错 Operation category READ is not supported in state standby解决办法
- Operation category READ is not supported in state standby解决办法
- Hadoop报错:“Operation category READ is not supported in state standby”问题解决
- Operation category READ is not supported in state standby 故障解决
- hadoop异常: Operation category READ is not supported in state standby
- operation category read is not supported in state standby
- hadoop错误Operation category READ is not supported in state standby
- Operation category READ is not supported in state standby
- Operation category READ is not supported in state standby
- YARN启动ResourceManager报错:Operation category READ is not supported in state standby
- Operation category READ is not supported in state standby
- Rorr:Operation category READ is not supported in state standy
- HBase Operation category READ is not supported in state standby
- Operation category READ is not supported in state standby
- Operation category READ is not supported in state standby
- Operation category READ is not supported in state standby