From mapreduce-issues-return-34925-apmail-hadoop-mapreduce-issues-archive=hadoop.apache.org@hadoop.apache.org Fri Dec 2 12:44:05 2011 Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 09C999B43 for ; Fri, 2 Dec 2011 12:44:05 +0000 (UTC) Received: (qmail 65253 invoked by uid 500); 2 Dec 2011 12:44:04 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 65211 invoked by uid 500); 2 Dec 2011 12:44:04 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 65203 invoked by uid 99); 2 Dec 2011 12:44:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 12:44:04 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 12:44:02 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 64FC2AF58A for ; Fri, 2 Dec 2011 12:43:41 +0000 (UTC) Date: Fri, 2 Dec 2011 12:43:41 +0000 (UTC) From: "Hudson (Commented) (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <1432743624.34683.1322829821415.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1792729031.51845.1321897251816.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MAPREDUCE-3443) Oozie jobs are running as oozie user even though they create the jobclient as doAs. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MAPREDUCE-3443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161590#comment-13161590 ] Hudson commented on MAPREDUCE-3443: ----------------------------------- Integrated in Hadoop-Hdfs-HAbranch-build #3 (See [https://builds.apache.org/job/Hadoop-Hdfs-HAbranch-build/3/]) merge MAPREDUCE-3443 from trunk. Contributed by Mahadev Konar sseth : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1209232 Files : * /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt * /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobClient.java * /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/Job.java * /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/main/java/org/apache/hadoop/mapred/ClientServiceDelegate.java > Oozie jobs are running as oozie user even though they create the jobclient as doAs. > ----------------------------------------------------------------------------------- > > Key: MAPREDUCE-3443 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-3443 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: mrv2 > Affects Versions: 0.23.0 > Reporter: Mahadev konar > Assignee: Mahadev konar > Priority: Blocker > Fix For: 0.23.1 > > Attachments: MAPREDUCE-3443.patch, MAPREDUCE-3443.patch, MAPREDUCE-3443.patch, MAPREDUCE-3443.patch, MAPREDUCE-3443.patch > > > Oozie is having issues with job submission, since it does the following: > {code} > doAs(userwhosubmittedjob) { > jobclient = new JobClient(jobconf); > } > jobclient.submitjob() > {code} > In 0.20.2** this works because the JT proxy is created as soon as we call new JobClient(). But in 0.23 this is no longer true since the client has to talk to multiple servers (AM/RM/JHS). To keep this behavior we will have to store the ugi in new JobClient() and make sure all the calls are run with a doAs() inside the jobclient. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira