HDFS查看异常:Operation category READ is not supported in state standby. Visit
跨集群访问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状态
hdfs-site.xml<property><name>dfs.ha.namenodes.nameservice1</name><value>namenode223,namenode47</value></property>
使用命令查看namenode状态,发现主NameNode是在运行的。
$hdfs haadmin -getServiceState namenode223
active
此时如果查看namenode是standby模式可以使用以下命令前置切换主备
hdfs haadmin -transitionToActive --forcemanual namenode47
找了半天才发现test:8020是之前的namenode,后来NameNode被我迁移了,换成test2:8020,ok。
总结几个命令,日常维护时使用:
#切换NameNode(强制切换主备),前提是目前在用的NameNode是standby状态,否则失败
hdfs haadmin -transitionToActive --forcemanual namenode47#查看NameNode运行状态
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相关推荐
- HUE 打开 WorkFlow异常 Operation category READ is not supported in state standby
异常:在hue上配置的一些定时任务突然停止执行. 1.打开页面HUE->WorkFlow 发现页面异常,无法进入WorkFlow,如下图 2.查看HUE日志 查看到WebHdfsExceptio ...
- Operation category READ is not supported in state standby. Visit https://s.apache.org/sbnn-error
Operation category READ is not supported in state standby. Visit https://s.apache.org/sbnn-error 意思是 ...
- HDFS报错解决:Operation category JOURNAL is not supported in state standby
现象: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyException): Operation categor ...
- HBase hmaster无法正常启动,日志报错Operation category READ is not supported in state standby.hdfs ha hbase配置修改
E2:HBase hmaster无法正常启动,日志报错Operation category READ is not supported in state standby. hdfs配置了ha,hbas ...
- HDFS开启HA后,Hbase的REGIONSERVERS启动错误(Operation category READ is not supported in state standby)
问题: HDFS开启HA后,Hbase的REGIONSERVERS启动错误(Operation category READ is not supported in state standby) 解决方 ...
- 启动Spark出现Operation category READ is not supported in state standby
1.美图 2.背景 运行spark任务报错 Operation category READ is not supported in state standby 查看界面 05的ip 是211 04的i ...
- Operation category READ is not supported in state standby
RemoteException(org.apache.hadoop.ipc.StandbyException): Operation category READ is not supported in ...
- HDFS : RemoteException Operation category READ is not supported in state standby.
1.美图 2.背景 执行一个Kudu命令,然后报错 Query: CREATE TABLE TABLE_SIDE (SEX string PRIMARY KEY,INFO string ) PARTI ...
- hadoop: Operation category READ is not supported in state standby
1. 背景 做kylin报错如下 日志内容如下 java.io.IOException: OS command error exit with return code: 1, error messag ...
最新文章
- 分析UIWindow
- 64位系統修復dll
- 数学学习笔记-三角函数
- 上拉加载更多后台数据_微信小程序端操作云数据库
- 电脑抓整个路由器的包_网络是电竞游戏体验的命脉 2018年年度电竞路由器功能盘点...
- 【codevs2301】【BZOJ2186】沙拉公主的困惑,数论练习之逆元与φ
- 防抖与节流方案_函数防抖和节流
- Win10彻底关闭恢复功能、省流量终极设置
- python 日期格式打印_Python打印格式
- Python-求解两个字符串的最长公共子序列
- 30+简约和平铺的WordPress复古主题
- Docker容器化部署及应用实战
- Alcor(安国)AU6387量产修复(u盘修复)
- 如何用photoshop做24色环_【PS教你快速绘制超漂亮的色环】 24色环图绘制
- goolgle版本87.0乱码设置utf-8,附有charset插件
- 谈谈MATLAB数字滤波器频域响应
- php薄饼,薄饼的做法大全
- 国潮风彩色手绘年俗年画春节插画素材
- SQL:简单查询语句操作实例
- 游戏资讯:预计在10月底至11月内, 版号审批将会恢复
热门文章
- burpsuite小米手机抓包_使用burpsuite实现Android APP的HTTPS抓包
- python运维常用模块-运维常用python库模块
- python有趣的简单代码_简单几步,100行代码用Python画一个蝙蝠侠的logo
- python 列表比较不同物质的吸热能力_python列表里面根据一定的条件挑选元素
- android运行别人的项目_导入他人的Android工程
- if嵌套while循环语句_Python学习笔记015--while循环嵌套
- matlab 白色像素点,MATLAB 簡單的計算白色輪廓中像素點的個數
- 计算机网络中的物理层
- C++模板的注意事项
- xxljob 配置文件_最详细的xxl-job java配置方式spring-boot