日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

HDFS查看异常:Operation category READ is not supported in state standby. Visit

發(fā)布時間:2024/8/23 编程问答 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 HDFS查看异常:Operation category READ is not supported in state standby. Visit 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

?跨集群訪問hdfs失敗

$ hdfs dfs -ls hdfs://test:8020/hbase ls: Operation category READ is not supported in state standby. Visit https://s.apache.org/sbnn-error

意思是namenode不可用,查看namenode狀態(tài)

hdfs-site.xml<property><name>dfs.ha.namenodes.nameservice1</name><value>namenode223,namenode47</value></property>

使用命令查看namenode狀態(tài),發(fā)現(xiàn)主NameNode是在運行的。

$hdfs haadmin -getServiceState namenode223 active

此時如果查看namenode是standby模式可以使用以下命令前置切換主備?

hdfs haadmin -transitionToActive --forcemanual namenode47

?

找了半天才發(fā)現(xiàn)test:8020是之前的namenode,后來NameNode被我遷移了,換成test2:8020,ok。

總結幾個命令,日常維護時使用:

#切換NameNode(強制切換主備),前提是目前在用的NameNode是standby狀態(tài),否則失敗 hdfs haadmin -transitionToActive --forcemanual namenode47#查看NameNode運行狀態(tài) hdfs haadmin -getServiceState namenode223 更多查看 $ hdfs haadmin -help Usage: DFSHAAdmin [-ns <nameserviceId>][-transitionToActive <serviceId> [--forceactive]][-transitionToStandby <serviceId>][-failover [--forcefence] [--forceactive] <serviceId> <serviceId>][-getServiceState <serviceId>][-checkHealth <serviceId>][-help <command>]Generic options supported are -conf <configuration file> specify an application configuration file -D <property=value> use value for given property -fs <local|namenode:port> specify a namenode -jt <local|resourcemanager:port> specify a ResourceManager -files <comma separated list of files> specify comma separated files to be copied to the map reduce cluster -libjars <comma separated list of jars> specify comma separated jar files to include in the classpath. -archives <comma separated list of archives> specify comma separated archives to be unarchived on the compute machines.The general command line syntax is bin/hadoop command [genericOptions] [commandOptions]

?

總結

以上是生活随笔為你收集整理的HDFS查看异常:Operation category READ is not supported in state standby. Visit的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內容還不錯,歡迎將生活随笔推薦給好友。