How can I run a mapreduce job remotely
To the first issue, looks like [user] doesn't have permissions on HDFS. Primarily, Hadoop uses whoami command to determine if the user submitting the job and the output from the command is same. Two ways to address this, a) Determine the user who has permissions on HDFS, say root, and add the following line before submitting your job. System.setProperty("HADOOP_USER_NAME","root");b) Impersonation. Check out the following link http://hadoop.apache.org/docs/stable/Secure_Impersonation.html