Operation category READ is not supported in state standby

问题描述:

https://www.cnblogs.com/wqbin/p/11635175.html

问题分析:

由于两台namenode都是备节点,需要开启zk初始化,
hdfs zkfc -formatZK,hadoop对zk进行创建,谁创建成功谁为主

解决方法:

hdfs zkfc -formatZK

问题总结:

hdfs zkfc -formatZK
hdfs haadmin -transitionToActive --forcemanual nn1
hdfs haadmin -getServiceState namenode1

https://blog.csdn.net/u012599988/article/details/46926851?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase

https://blog.csdn.net/sdauzyh/article/details/52237965

https://blog.csdn.net/Kohang/article/details/79029688?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase

你可能感兴趣的:(Operation category READ is not supported in state standby)