1. 程式人生 > >Hadoop叢集重啟過程記錄

Hadoop叢集重啟過程記錄

1. brain02~04啟動zk

su - hadoop

sudo service zookeeper-server restart

2. brain01~03啟動JN

sudo service hadoop-hdfs-journalnode restart

3. brain01上格式化namenode

sudo -u hdfs hadoop namenode -format

su - root

scp -r hadoop ctdn02:/data/cloudera/

brain02:

chown -R hdfs:hdfs hadoop

4.brain01上初始化zkha

hdfs zkfc -formatZK

5. brain01~02

sudo service hadoop-hdfs-zkfc restart

sudo service hadoop-hdfs-namenode restart

6.brain01~04

sudo service hadoop-hdfs-datanode restart

7.brain01~02

sudo service hadoop-yarn-resourcemanager restart

sudo service hadoop-mapreduce-historyserver restart

8.brain01~04

sudo service hadoop-yarn-nodemanager restart

9. brain01啟動hive

sudo service hive-metastore restart

sudo service hive-server2 restart

10. brain01

sudo service hbase-master restart

brain01~04:

sudo service hbase-regionserver restart

11. brain01

啟動hbase thrift服務

nohup /usr/lib/hbase/bin/hbase-daemon.sh start thrift2 &
nohup hbase thrift -p 9090 start &
netstat -nl | grep 9090