Set hadoop system user for client embedded in Java webapp
I would like to submit MapReduce jobs from a java web application to a remote Hadoop cluster but am unable to specify which user the job should be submitted for. I would like to configure and use a system user which should be used for all MapReduce jobs. Currently I am unable to specify any user and no matter what the hadoop job runs under the username of the currently logged in user of the client system. This causes an error with the message Permission denied: user=alice, access=WRITE, inode="staging":hduser:supergroup:rwxr-xr-x ... where "alice" is the local, logged in user on the client