各个服务组件逐一启动/停止
启动/停止 HDFS
hadoop-daemon.sh start namenode / datanode / secondarynamenode
hadoop-daemon.sh stop namenode / datanode / secondarynamenode
启动/停止 YARN
yarn-daemon.sh start / stop resourcemanager / nodemanager
yarn-daemon.sh stop resourcemanager / nodemanager
各个模块分开启动/停止(配置ssh是前提)常用
整体启动/停止 HDFS
start-dfs.sh
stop-dfs.sh
整体启动/停止 YARN
start-yarn.sh
stop-yarn.sh