同步hadoop配置文件
#!/bin/bash HADOOP_HOME=/usr/local/hadoop while read line do HOST=$line echo "copy to $HOST" scp -r $HADOOP_HOME/etc $HOST:$HADOOP_HOME > /dev/null done < $HADOOP_HOME/etc/hadoop/slaves
#!/bin/bash HADOOP_HOME=/usr/local/hadoop while read line do HOST=$line echo "copy to $HOST" scp -r $HADOOP_HOME/etc $HOST:$HADOOP_HOME > /dev/null done < $HADOOP_HOME/etc/hadoop/slaves