Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 18064 invoked from network); 29 Mar 2008 12:10:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Mar 2008 12:10:47 -0000 Received: (qmail 7178 invoked by uid 500); 29 Mar 2008 12:10:40 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 7096 invoked by uid 500); 29 Mar 2008 12:10:40 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 7077 invoked by uid 99); 29 Mar 2008 12:10:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Mar 2008 05:10:40 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Mar 2008 12:10:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 78749234C0AC for ; Sat, 29 Mar 2008 05:08:24 -0700 (PDT) Message-ID: <27542236.1206792504492.JavaMail.jira@brutus> Date: Sat, 29 Mar 2008 05:08:24 -0700 (PDT) From: "Hudson (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-2833) JobClient.submitJob(...) should not use "Dr Who" as a default username In-Reply-To: <31209023.1203018669847.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-2833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583306#action_12583306 ] Hudson commented on HADOOP-2833: -------------------------------- Integrated in Hadoop-trunk #445 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/445/]) > 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 > > 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.