1.各个模板分开启动/停止
1.整体启动/停止 HDFS
start-dfs.sh / stop-dfs.sh
2.整体启动/停止 YARN
start-yarn.sh / stop-yarn.sh
2.各个服务组件逐一启动/停止
1.分别启动/停止 HDFS组件
hdfs --daemon start/stop namenode/datanode/secondarynamenode
2.分别启动/停止 YARN组件
yarn --daemon start/stop resourcemanager/nodemanager