Operation category READ is not supported in state standby

RemoteException(org.apache.hadoop.ipc.StandbyException): Operation category READ is not supported in state standby

两个namenode都是standby

在一台主机上执行:

hdfs haadmin -transitionToActive --forcemanual nn1 

再访问,一台active 一台standy

时间: 2024-10-16 07:36:44

Operation category READ is not supported in state standby的相关文章

Namenode启动报错Operation category JOURNAL is not supported in state standby

org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyException): Operation category JOURNAL is not supported in state standby  at org.apache.hadoop.hdfs.server.namenode.ha.StandbyState.checkOperation(StandbyState.java:87)  at org.apache

hadoop错误Operation category READ is not supported in state standby

报如下错误 解决方法: 方法一:(结果不起作用) 通过Shell命令方式,hadoop/bin/hdfs haadmin -failover --forceactive hadoop2 hadoop1(注意,这种方式本来是在手动故障恢复中进行强制切换NameNode的做法) 返回结果,不支持,并且诚恳的提示,这种方式是在手动故障转移的情况下,该命令才会起作用 方法二:(奏效) 我使用JPS检查了一下ZooKeeper集群的状态,发现没有任何征兆的失效了两个,原来是ZK的原因,于是重新启动ZK集群

vs问题解决:an operation is not legal in the current state

debug时弹出提示框:内容有:an operation is not legal in the current state 解决方案: Go to Tools > Options > Debugging > General and turn off the setting for Enable JavaScript Debugging for ASP.NET (Chrome and IE).

Visual Studio 2017 error: Unable to start program, An operation is not legal in the current state

For me, the solution (workaround) is to turn off JavaScript debugging on Chrome, which I believe is a new feature introduced in VS 2017. Go to Tools > Options > Debugging > General and turn off the setting for Enable JavaScript Debugging for ASP.

kafka-connect-hdfs连接hadoop hdfs时候,竟然是单点的,太可怕了。。。果断改成HA

2017-08-16 11:57:28,237 WARN [org.apache.hadoop.hdfs.LeaseRenewer][458] - <Failed to renew lease for [DFSClient_NONMAPREDUCE_-1756242047_26] for 30 seconds. Will retry shortly ...> org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyE

AAS代码运行-第11章-2

hdfs dfs -ls /user/littlesuccess/AdvancedAnalysisWithSparkhdfs dfs -mkdir /user/littlesuccess/AdvancedAnalysisWithSpark/ch11hdfs dfs -put fish.py /user/littlesuccess/AdvancedAnalysisWithSpark/ch11 做好上述准备工作之后,就可以运行pyspark代码了: raw_data = sc.textFile('h

Hbase安装和错误

集群规划情况: djt1 active Hmaster djt2 standby Hmaster djt3 HRegionServer 搭建步骤: 第一步:配置conf/regionservers djt3 第二部:配置  新增 backup-masters djt2 第三部   配置 hbase-site.xml <property> <name>hbase.zookeeper.quorum</name> <value>djt1,djt2,djt3<

wordcount编写和提交集群运行问题解决方案

在win7测试Wordcount遇到的问题,解决过程 hadoop jar /root/wc1.jar cn.itcast.d3.hadoop.mr.WordCount hdfs://itcast:9000/words /out2 执行上面一句话时候报错: Unsupported major.minor version 52.0 这种错误的原因是jdk版本不一样导致的,我的win7是jdk1.8,hadoop是jdk1.7, 解决方案: 修改项目java compiler的方法: 在项目点右键-

hadoop 异常及处理总结-01(小马哥-原创)

试验环境: 本地:Window-MyEclipse 集群:Vmware 11+ 6台 Centos 6.5 Hadoop版本: 2.4.0(配置为自动HA) 试验背景: 在正常测试MapReduce(下简称MR)程序4次之后,进行一次新的MR程序,MyEclipse的控制台信息卡住不动了,我通过远程连接NameNode查看系统目录也被卡住,这时候再看MyEclipse控制台,发现已经抛出异常 org.apache.hadoop.ipc.RemoteException(org.apache.had