rsync_hadoop.sh 245 B

1234567
  1. SLAVE_NAMES=$(cat "$HADOOP_HOME/etc/hadoop/slaves" | sed 's/#.*$//;/^$/d');
  2. #echo $SLAVE_NAMES
  3. for s in $SLAVE_NAMES
  4. do
  5. echo $s
  6. rsync -vazu --progress share/hadoop/mapreduce/* hadoop@$s:/opt/software/hadoop/share/hadoop/mapreduce/
  7. done