You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Vinod K V (JIRA)" <ji...@apache.org> on 2009/08/14 10:23:14 UTC

[jira] Created: (MAPREDUCE-871) Job/Task local files have incorrect group ownership set by LinuxTaskController binary

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


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.


[jira] Commented: (MAPREDUCE-871) Job/Task local files have incorrect group ownership set by LinuxTaskController binary

Posted by "Vinod K V (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745862#action_12745862 ] 

Vinod K V commented on MAPREDUCE-871:
-------------------------------------

All the test failures reported as Hudson says are of age >>1 and are unrelated.

> 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.


[jira] Updated: (MAPREDUCE-871) Job/Task local files have incorrect group ownership set by LinuxTaskController binary

Posted by "Vinod K V (JIRA)" <ji...@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:
--------------------------------

    Release Note: Fixed LinuxTaskController binary so that permissions of local files on TT are set correctly: user owned by the job-owner and group-owned by the group owner of the binary and _not_ the primary group of the TaskTracker.

> 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
>             Fix For: 0.21.0
>
>         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.


[jira] Updated: (MAPREDUCE-871) Job/Task local files have incorrect group ownership set by LinuxTaskController binary

Posted by "Vinod K V (JIRA)" <ji...@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.


[jira] Updated: (MAPREDUCE-871) Job/Task local files have incorrect group ownership set by LinuxTaskController binary

Posted by "Ravi Gummadi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravi Gummadi updated MAPREDUCE-871:
-----------------------------------

    Attachment: 871.20S.patch

Attaching patch for Y! 20 distribution. Not for commit here.

> 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
>             Fix For: 0.21.0
>
>         Attachments: 871.20S.patch, 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.


[jira] Assigned: (MAPREDUCE-871) Job/Task local files have incorrect group ownership set by LinuxTaskController binary

Posted by "Vinod K V (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vinod K V reassigned MAPREDUCE-871:
-----------------------------------

    Assignee: Vinod K V

> 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
>
> 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.


[jira] Updated: (MAPREDUCE-871) Job/Task local files have incorrect group ownership set by LinuxTaskController binary

Posted by "Vinod K V (JIRA)" <ji...@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:
--------------------------------

    Status: Patch Available  (was: Open)

> 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.


[jira] Updated: (MAPREDUCE-871) Job/Task local files have incorrect group ownership set by LinuxTaskController binary

Posted by "Hemanth Yamijala (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hemanth Yamijala updated MAPREDUCE-871:
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.21.0
     Hadoop Flags: [Reviewed]
           Status: Resolved  (was: Patch Available)

I just committed this. Thanks, Vinod !

> 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
>             Fix For: 0.21.0
>
>         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.


[jira] Commented: (MAPREDUCE-871) Job/Task local files have incorrect group ownership set by LinuxTaskController binary

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745637#action_12745637 ] 

Hadoop QA commented on MAPREDUCE-871:
-------------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12417121/MAPREDUCE-871-20090820.1.txt
  against trunk revision 806152.

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 6 new or modified tests.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 findbugs.  The patch does not introduce any new Findbugs warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    -1 core tests.  The patch failed core unit tests.

    -1 contrib tests.  The patch failed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Mapreduce-Patch-vesta.apache.org/498/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Mapreduce-Patch-vesta.apache.org/498/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Mapreduce-Patch-vesta.apache.org/498/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Mapreduce-Patch-vesta.apache.org/498/console

This message is automatically generated.

> 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.