remote-run.sh 231 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. ssh hadoop@$s "cd /opt/software/hadoop/share/hadoop/mapreduce; rm -rfv mapreduce; ls ./"
  7. done