Hadoop 2.7.4 關閉與啟動

張衝andy發表於2017-08-27

環境說明:
[root@hadp-master sbin]# hadoop version
Hadoop 2.7.4

一、 指令碼封裝全部一起啟動、關閉
1.1 啟動
[root@hadp-master sbin]# ./start-all.sh 
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
Starting namenodes on [hadp-master]
hadp-master: starting namenode, logging to /usr/local/hadoop/hadoop-2.7.4/logs/hadoop-root-namenode-hadp-master.out
hadp-node2: starting datanode, logging to /usr/local/hadoop/hadoop-2.7.4/logs/hadoop-root-datanode-hadp-node2.out
hadp-node1: starting datanode, logging to /usr/local/hadoop/hadoop-2.7.4/logs/hadoop-root-datanode-hadp-node1.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop/hadoop-2.7.4/logs/hadoop-root-secondarynamenode-hadp-master.out
starting yarn daemons
starting resourcemanager, logging to /usr/local/hadoop/hadoop-2.7.4/logs/yarn-root-resourcemanager-hadp-master.out
hadp-node2: starting nodemanager, logging to /usr/local/hadoop/hadoop-2.7.4/logs/yarn-root-nodemanager-hadp-node2.out
hadp-node1: starting nodemanager, logging to /usr/local/hadoop/hadoop-2.7.4/logs/yarn-root-nodemanager-hadp-node1.out
說明:啟動所有的Hadoop守護程式。包括NameNode、DataNode、 Secondary NameNode、Yarn、 Yarn-root-nodemanager

1.2 關閉
[root@hadp-master sbin]# ./stop-all.sh 
This script is Deprecated. Instead use stop-dfs.sh and stop-yarn.sh
Stopping namenodes on [hadp-master]
hadp-master: stopping namenode
hadp-node2: stopping datanode
hadp-node1: stopping datanode
Stopping secondary namenodes [0.0.0.0]
0.0.0.0: stopping secondarynamenode
stopping yarn daemons
stopping resourcemanager
hadp-node2: no nodemanager to stop
hadp-node1: no nodemanager to stop
no proxyserver to stop
說明:關閉所有的Hadoop守護程式。包括NameNode、DataNode、 Secondary NameNode、Yarn、resourcemanager

二、模組封裝啟動、關閉
2.1 啟動
[root@hadp-master sbin]# ./start-dfs.sh 
Starting namenodes on [hadp-master]
hadp-master: starting namenode, logging to /usr/local/hadoop/hadoop-2.7.4/logs/hadoop-root-namenode-hadp-master.out
hadp-node1: starting datanode, logging to /usr/local/hadoop/hadoop-2.7.4/logs/hadoop-root-datanode-hadp-node1.out
hadp-node2: starting datanode, logging to /usr/local/hadoop/hadoop-2.7.4/logs/hadoop-root-datanode-hadp-node2.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop/hadoop-2.7.4/logs/hadoop-root-secondarynamenode-hadp-master.out
說明:啟動Hadoop HDFS守護程式NameNode、DataNode、SecondaryNameNode

[root@hadp-master sbin]# ./start-yarn.sh 
starting yarn daemons
starting resourcemanager, logging to /usr/local/hadoop/hadoop-2.7.4/logs/yarn-root-resourcemanager-hadp-master.out
hadp-node2: starting nodemanager, logging to /usr/local/hadoop/hadoop-2.7.4/logs/yarn-root-nodemanager-hadp-node2.out
hadp-node1: starting nodemanager, logging to /usr/local/hadoop/hadoop-2.7.4/logs/yarn-root-nodemanager-hadp-node1.out
說明:啟動yarn daemons、yarn-root-resourcemanager、yarn-root-nodemanager

2.2 關閉
[root@hadp-master sbin]# ./stop-dfs.sh
Stopping namenodes on [hadp-master]
hadp-master: stopping namenode
hadp-node2: stopping datanode
hadp-node1: stopping datanode
Stopping secondary namenodes [0.0.0.0]
0.0.0.0: stopping secondarynamenode
說明:停止Hadoop HDFS守護程式NameNode、DataNode、SecondaryNameNode

[root@hadp-master sbin]# ./stop-yarn.sh 
stopping yarn daemons
stopping resourcemanager
hadp-node1: no nodemanager to stop
hadp-node2: no nodemanager to stop
no proxyserver to stop
說明:關閉yarn daemons、yarn-root-resourcemanager、nodemanager

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31383567/viewspace-2144200/,如需轉載,請註明出處,否則將追究法律責任。

相關文章