@H_404_2@
【xcall.sh】@H_404_2@
#!/bin/bash@H_404_2@
params=$@@H_404_2@
hosts=`cat /soft/hadoop/etc/hadoop/slaves`@H_404_2@
tput setaf 2@H_404_2@
echo =============localhost==================@H_404_2@
tput setaf 7@H_404_2@
$params@H_404_2@
for host in $hosts ; do@H_404_2@
tput setaf 2@H_404_2@
echo =============$host=========================== @H_404_2@
tput setaf 7@H_404_2@
ssh -4 $host "source /etc/profile ; $params"@H_404_2@
done@H_404_2@