#!/bin/sh
pcount=$#
if((pcount==0));then
echo no args...;
exit;
fi
echo ==================localhost==================
$@
for((host=102; host<=104; host++)); do
echo ==================hadoop$host==================
ssh hadoop$host $@
done
03-28
1280
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
01-03
06-06
364
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)