scp_hadoop.sh 229 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. scp -r share/hadoop/mapreduce/* hadoop@$s:/opt/software/hadoop/share/hadoop/mapreduce/
  7. done