重启 hdfs and yarn datanode

1- start-all.sh and stop-all.sh:

Used to start and stop hadoop daemons all at once. Issuing it on the master machine will start/stop the daemons on all the nodes of a cluster. 

 

 2- start.dfs.sh, stop.dfs.sh and start-yarn.sh, stop-yarn.sh:

Same as above but start/stop HDFS and YARN daemons separately from the master machine on all the nodes. It is advisable to use these commands now over start-all.sh & stop-all.sh

 

3- hadoop-daemon.sh start namenode/datanode and hadoop-daemon.sh stop namenode/datanode:

To start individual daemons on an individual machine manually. You need to go to a particular node and issue these commands.

 

 

重启 yarn datanode:

"hadoop-daemon.sh start datanode" and "yarn-daemon.sh start nodemanager" .

 

posted @ 2019-10-23 19:08  Pekkle  阅读(1321)  评论(0编辑  收藏  举报