Hadoop報錯:“Operation category READ is not supported in state standby”問題解決

問題:

18/01/10 05:31:01 INFO retry.RetryInvocationHandler: Exception while invoking getFileInfo of class ClientNamenodeProtocolTranslatorPB over geeke1/192.168.1.121:9000 after 3 fail over attempts. Trying to fail over after sleeping for 5709ms.
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyException): Operation category READ is not supported in state standby

其中Operation category READ is not supported in state standby

解決

可以先使用命令查看namenode的狀態:

hdfs haadmin -getServiceState namenode1

發現它們狀態都是:

standby

因此手動切換它們其中一個的狀態:

hdfs haadmin -getServiceState namenode1

再次查看要切換的Namenode節點狀態爲:

active

可以通過Web端查看:

http://namenodeIP:50070/dfshealth.html#tab-overview
http://namenodeIP:8088/

後記

臨時記錄,比較粗略。以免忘記 。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章