重启 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" .

原文地址:https://www.cnblogs.com/pekkle/p/11728162.html