[
https://issues.apache.org/jira/browse/HADOOP-2833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569127#action_12569127
]
Nigel Daley commented on HADOOP-2833:
-------------------------------------
{quote}
Aw! I like having Dr Who as the default. smile
{quote}
I'll hazard a guess that you've never tested with a user name containing a
space character. *bigger smile*
> JobClient.submitJob(...) should not use "Dr Who" as a default username
> ----------------------------------------------------------------------
>
> Key: HADOOP-2833
> URL: https://issues.apache.org/jira/browse/HADOOP-2833
> Project: Hadoop Core
> Issue Type: Bug
> Components: mapred
> Reporter: Tsz Wo (Nicholas), SZE
>
> In JobClient line 530, we have
> {code}
> String user = System.getProperty("user.name");
> job.setUser(user != null ? user : "Dr Who");
> {code}
> Since a ugi is already obtained in the earlier codes, we should get the
> username from ugi, not System.getProperty("user.name"). Also, Exception
> should be thrown if the username is null, instead of using a default.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.