您好,登錄后才能下訂單哦!
這篇文章主要講解了“Hadoop 2.7.4怎么關(guān)閉與啟動”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“Hadoop 2.7.4怎么關(guān)閉與啟動”吧!
環(huán)境說明:
[root@hadp-master sbin]# hadoop version
Hadoop 2.7.4
一、 腳本封裝全部一起啟動、關(guān)閉
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守護(hù)進(jìn)程。包括NameNode、DataNode、 Secondary NameNode、Yarn、 Yarn-root-nodemanager
1.2 關(guān)閉
[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
說明:關(guān)閉所有的Hadoop守護(hù)進(jìn)程。包括NameNode、DataNode、 Secondary NameNode、Yarn、resourcemanager
二、模塊封裝啟動、關(guān)閉
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守護(hù)進(jìn)程N(yùn)ameNode、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 關(guān)閉
[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守護(hù)進(jìn)程N(yùn)ameNode、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
說明:關(guān)閉yarn daemons、yarn-root-resourcemanager、nodemanager
感謝各位的閱讀,以上就是“Hadoop 2.7.4怎么關(guān)閉與啟動”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對Hadoop 2.7.4怎么關(guān)閉與啟動這一問題有了更深刻的體會,具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是億速云,小編將為大家推送更多相關(guān)知識點(diǎn)的文章,歡迎關(guān)注!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。