Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 74233 invoked from network); 20 Aug 2009 09:57:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Aug 2009 09:57:19 -0000 Received: (qmail 3447 invoked by uid 500); 20 Aug 2009 09:57:38 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 3385 invoked by uid 500); 20 Aug 2009 09:57:38 -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 3375 invoked by uid 99); 20 Aug 2009 09:57:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Aug 2009 09:57:38 +0000 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; Thu, 20 Aug 2009 09:57:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CFE85234C044 for ; Thu, 20 Aug 2009 02:57:14 -0700 (PDT) Message-ID: <1679969193.1250762234836.JavaMail.jira@brutus> Date: Thu, 20 Aug 2009 02:57:14 -0700 (PDT) From: "Vinod K V (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Updated: (MAPREDUCE-871) Job/Task local files have incorrect group ownership set by LinuxTaskController binary In-Reply-To: <675649049.1250238194807.JavaMail.jira@brutus> 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-871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vinod K V updated MAPREDUCE-871: -------------------------------- Attachment: MAPREDUCE-871-20090820.1.txt Here's the scenario. {quote} TT process user/group information: mapred group1,group2,group3 (group1 is primary) task-controller ownership: ---Sr-s--- 1 root group2 job submitter: userA:groupA {quote} The bug is the ownership of files created for the task, for e.g. bq. $jobid dr-xrws--- userA group1 Attaching patch to fix this issue which essentially sets the permissions of files created for the task as bq. $jobid dr-xrws--- userA group2 Also modified the testcase to reflect this. > Job/Task local files have incorrect group ownership set by LinuxTaskController binary > ------------------------------------------------------------------------------------- > > Key: MAPREDUCE-871 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-871 > Project: Hadoop Map/Reduce > Issue Type: Sub-task > Components: tasktracker > Reporter: Vinod K V > Assignee: Vinod K V > Attachments: MAPREDUCE-871-20090820.1.txt > > > HADOOP-4491 fixed the secure permissions of local files on a TT. While testing HADOOP-4491 on a cluster, [~karams] found out a bug. All the files/dirs have should be owned by the group corresponding to the group owner of the task-controller binary (via using getegid()) which in turn is a special group to which *only* TT user belongs. HADOOP-4491 incorrectly set it to primary group of the TT via getgid(), and not the special group. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.