Operation category READ is not supported in state standby

今天启动hadoop集群之后,打开hdfs管理界面来查看hdfs上的文件的时候,没有任何东西显示,并且报错:Operation category READ is not supported in state standby。

如下图所示:

Operation category READ is not supported in state standby

通过查看namenode的状态,得知当前node113上的namenode是standby(从namenode)状态,

Operation category READ is not supported in state standby

使用nn1对应的namenode来访问才可以,nn1在node112上,因此改为如下访问方式http://node112:50070:

Operation category READ is not supported in state standby

就可以正常访问了。