当前位置:   article > 正文

hadoop HDFS HA 测试后双standby模式_hadoop虚拟机hdfs haadmin -getservicestate master怎么修改成

hadoop虚拟机hdfs haadmin -getservicestate master怎么修改成active
今天测试HDFS群集active和standby切换,过程中出现了两个standby模式,运行hadoop命令出现如下报错,
15/05/18 16:31:12 INFO retry.RetryInvocationHandler: Exception while invoking getFileInfo of class ClientNamenodeProtocolTranslatorPB over Master1/192.168.19.194:9000 after 13 fail over attempts. Trying to fail over after sleeping for 14300ms.
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyException): Operation category READ is not supported in state standby

意思是standby模式不能提供写入,使用如下命令解决:
hdfs haadmin -transitionToActive --forcemanual Master1
让Master1变更为active模式。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/394425
推荐阅读
相关标签
  

闽ICP备14008679号