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



Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐