自动化运维、大数据、Docker

记录Hadoop踩过的坑

1、Operation category READ is not supported in state standby

image

hdfs haadmin -transitionToActive --forcemanual nn1

2、集群namenode节点均为standy

a、检查zookeeper服务是否启动

# zkServer.sh status
ZooKeeper JMX enabled by default
Using config: /usr/local/zookeeper-3.4.11/bin/../conf/zoo.cfg
Mode: leader

如果出现如下错误,检查zookeeper端口是否互通

# zkServer.sh status
ZooKeeper JMX enabled by default
Using config: /usr/local/zookeeper-3.4.11/bin/../conf/zoo.cfg
Error contacting service. It is probably not running

b、检查zkfc自动切换是否启动 

# jps
1746 ResourceManager
1190 NameNode
2985 DFSZKFailoverController
3081 Jps
1850 NodeManager
1487 JournalNode
2783 QuorumPeerMain

检查DFSZKFailoverController是否启动

启动DFSZKFailoverController进程

# /usr/local/hadoop-2.7.5/sbin/hadoop-daemon.sh start zkfc
赞(0) 打赏
蜷缩的蜗牛 , 版权所有丨如未注明 , 均为原创丨 转载请注明蜷缩的蜗牛 » 记录Hadoop踩过的坑
分享到: 更多 (0)

评论 抢沙发

评论前必须登录!

 

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏