環境說明:
[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
Hadoop 2 7 4 關閉與啟動
環境說明 root hadp master sbin hadoop version hadoop 2.7.4 一 指令碼封裝全部一起啟動 關閉 1.1 啟動 root hadp master sbin start all.sh this script is deprecated.instead us...
spark啟動,啟動hadoop關閉步驟
sbin start all.sh 啟動所有的hadoop守護程序。包括namenode secondary namenode datanode resourcemanager nodemanager sbin stop all.sh 停止所有的hadoop守護程序。包括namenode secon...
hadoop集群啟動與關閉需要輸入密碼
筆者在電腦上配置了hadoop集群後,電腦上的本地ip發生了改變。在啟動集群時,出現不斷輸入密碼的現象。hadoop wh bin sh hadoop home sbin start all.sh this script is deprecated.instead use start dfs.sh ...