hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-2833) JobClient.submitJob(...) should not use "Dr Who" as a default username
Date Sat, 29 Mar 2008 00:34:24 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-2833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tsz Wo (Nicholas), SZE updated HADOOP-2833:
-------------------------------------------

    Fix Version/s: 0.16.2

0.16.2 need this patch:
HADOOP-2915 reads user information from conf and use it as a part of FileSystem cache key.
 Without this patch, user information will not be stored in conf.  It leads to an inconsistent
state in FileSystem cache.

> 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
>            Assignee: Tsz Wo (Nicholas), SZE
>             Fix For: 0.16.2, 0.17.0
>
>         Attachments: 2833_20080225.patch, 2833_20080227.patch, 2833_20080227b.patch,
2833_20080228.patch
>
>
> 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.


Mime
View raw message