栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

hive无法启动Operation category READ is not supported in state standby. Hadoop报错

hive无法启动Operation category READ is not supported in state standby. Hadoop报错

前几天做了个压力测试,结果hive突然无法启动

查找原因发现是hadoop出了问题

解决过程参考https://blog.csdn.net/u012447842/article/details/106424983 但我是小白,记录一下我的其他步骤

当出现Operation category READ is not supported in state standby
打开hdfs同样也出现

查看overview,我的namenode的id是 namenode22,所以在hadoop/bin下执行

hdfs haadmin -getServiceState namenode22 

获取此节点状态


果然是standby!
但是我并不知道现在哪个节点是active的状态,
不管了先试一把

hdfs haadmin -transitionToActive --forcemanual namenode22

//截图上传不上来,下面是返回结果

21/09/13 09:13:03 WARN ha.HAAdmin: Proceeding with manual HA state management even though
automatic failover is enabled for NameNode at nrdb3/192.168.98.46:8022
transitionToActive: Node namenode116 is already active
Usage: HAAdmin [-transitionToActive  [--forceactive]]

so当我在force namenode22 transit to active的时候他告诉我namenode116已经是active的状态,这不就好了么

// 先把116改为standby
hdfs haadmin -transitionToStandby --forcemanual namenode116
// 确认一下是否修改成功
hdfs haadmin -getServiceState namenode116
//再把我们的22改成active
hdfs haadmin -transitionToActive --forcemanual namenode22

最后打开hdfs,DONE

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/450143.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号