anchor.diff:  
   workdir=$1
   hdfsFile="$2"
  -HDFS_USER=$3
  +IMPERSONATED_USERNAME=$3
   
   #FSM states: STAGING, UNZIPPING, UPLOADING, CHOWNING, SUCCESS, FAILED
   fsmFile="$(dirname $1)/fsm-$(basename $1).txt"
  
positive.code: check_error
  
  echo "CHOWNING" > $fsmFile
  <%= node['hops']['base_dir'] %>/bin/hdfs dfs -chown -R ${HDFS_USER} "$dir"
  check_error
  
  echo "SUCCESS" > $fsmFile
  
negative.code: #!/bin/bash
  
  help() {
    echo "usage: $0 localWorkdir srcFileInHdfs IMPERSONATED_USERNAME"
    exit 1
  }
  
  