#!/bin/bash
user=`whoami`
echo "====== 正在关闭YARN ======"
ssh $user@hadoop103 '/opt/module/hadoop-2.7.2/sbin/stop-yarn.sh'
#睡5秒钟
sleep 5
echo "====== 正在关闭HDFS ======"
ssh $user@hadoop102 '/opt/module/hadoop-2.7.2/sbin/stop-dfs.sh'
#!/bin/bash
user=`whoami`
echo "====== 正在关闭YARN ======"
ssh $user@hadoop103 '/opt/module/hadoop-2.7.2/sbin/stop-yarn.sh'
#睡5秒钟
sleep 5
echo "====== 正在关闭HDFS ======"
ssh $user@hadoop102 '/opt/module/hadoop-2.7.2/sbin/stop-dfs.sh'
本文标题:黑猴子的家:hadoop-stop.sh
本文链接:https://www.haomeiwen.com/subject/ozsliltx.html
网友评论