1. hadoop22, hadoop23, hadoop24三台机器
2. namenode 所在hadoop22关闭 hdfs:
- # 找到/etc/hadoop位置
- cd /opt/module/hadoop-3.3.4/etc/hadoop
- # 找到shell脚本,关闭即可
- sbin/stop-dfs.sh
3. 关闭yarn脚本,我的在hadoop23:
- # 找到/etc/hadoop位置
- cd /opt/module/hadoop-3.3.4/etc/hadoop
-
- # 关闭yarn脚本
- sbin/stop-yarn.sh
4. hdfs, yarn关闭后,直接关闭虚拟机即可