[
https://issues.apache.org/jira/browse/MAPREDUCE-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Allen Wittenauer resolved MAPREDUCE-147.
----------------------------------------
Resolution: Won't Fix
Closing as won't fix.
> server can't set username in JobClient.submitJob for jobs submitted on behalf
> of other users
> --------------------------------------------------------------------------------------------
>
> Key: MAPREDUCE-147
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-147
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Reporter: Michael Bieniosek
>
> I have a rpc server that sits in front of hadoop and submits mapreduce jobs
> on behalf of users (humans). However, because hadoop gets username
> information from the unix username of the submitting process, all my jobs
> appear to be from the unix account used by the webserver.
> I tried to fix it by doing this:
> JobConf conf = ...
> JobClient client = ...
> conf.setUser(username);
> client.submitJob(conf);
> But that doesn't work because submitJob overwrites the username I wrote with
> setUser.
> Instead, submitJob should only insert a username into the job if it is not in
> the config already. Alternately, the username might be inserted at the time
> of creation of the JobConf, so that I have an opportunity to overwrite it, or
> the JobConf could supply some hook for me to insert some alternate username.
--
This message was sent by Atlassian JIRA
(v6.2#6252)