Hadoop教程

Hadoop HA集群怎么格式化namenode?

本文主要是介绍Hadoop HA集群怎么格式化namenode?,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

1)停止Hadoop集群

2)确保所有的服务器上zkServer都在运行

[user@NewBieSlave2 ~]$ zkServer.sh start
ZooKeeper JMX enabled by default
Using config: /home/user/apache-zookeeper/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
[user@NewBieSlave2 ~]$ zkServer.sh status
ZooKeeper JMX enabled by default
Using config: /home/user/apache-zookeeper/bin/../conf/zoo.cfg
Client port found: 2181. Client address: localhost. Client SSL: false.
Mode: follower
[user@NewBieSlave2 ~]$ 

3)在Hadoop的主服务器66上执行格式化命令行

hadoop namenode -format

这篇关于Hadoop HA集群怎么格式化namenode?的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!