Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-2915

LinuxTaskController does not work when JniBasedUnixGroupsNetgroupMapping or JniBasedUnixGroupsMapping is enabled

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.20.205.0
    • Fix Version/s: 0.20.205.0
    • Component/s: task-controller
    • Labels:
      None

      Description

      When a job is submitted, LinuxTaskController launches the native task-controller binary for job initialization. The native program does a series of prep work and call execv() to run JobLocalizer. It was observed that JobLocalizer does fails to run when JniBasedUnixGroupsNetgroupMapping or JniBasedUnixGroupsMapping is enabled, resulting in 100% job failures.

      JobLocalizer normally does not need the native library (libhadoop) for its functioning, but enabling a JNI user-to-group mapping function cause it to load the library. However, JobLocalizer cannot locate the library since "java.library.path" is not set.

      The proposed solution is to pass the java.library.path property through task-controller. LinuxTaskController already does it when launching the task log truncater.

      1. mr-2915.patch.txt
        7 kB
        Kihwal Lee
      2. linux_tc_fix.patch.txt
        0.7 kB
        Kihwal Lee

        Activity

        Hide
        Kihwal Lee added a comment -

        Sorry, I misread the code in trunk/0.23. They do have a similar problem. MAPREDUCE-3259 has been filed.

        Show
        Kihwal Lee added a comment - Sorry, I misread the code in trunk/0.23. They do have a similar problem. MAPREDUCE-3259 has been filed.
        Hide
        Matt Foley added a comment -

        Closed upon release of 0.20.205.0

        Show
        Matt Foley added a comment - Closed upon release of 0.20.205.0
        Hide
        Arun C Murthy added a comment -

        I just committed this. Thanks Kihwal!

        Show
        Arun C Murthy added a comment - I just committed this. Thanks Kihwal!
        Hide
        Kihwal Lee added a comment -

        The test just finished: No additional failures.

        Show
        Kihwal Lee added a comment - The test just finished: No additional failures.
        Hide
        Mahadev konar added a comment -

        +1 for the patch. Kihwal, can you please confirm if ant test pass?

        Show
        Mahadev konar added a comment - +1 for the patch. Kihwal, can you please confirm if ant test pass?
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12492643/mr-2915.patch.txt
        against trunk revision .

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

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

        -1 patch. The patch command could not apply the patch.

        Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/583//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12492643/mr-2915.patch.txt against trunk revision . +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 3 new or modified tests. -1 patch. The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/583//console This message is automatically generated.
        Hide
        Kihwal Lee added a comment -

        New patch with additional test.

        Result of test-patch on 0.20-securuty:

             [exec] +1 overall.  
             [exec] 
             [exec]     +1 @author.  The patch does not contain any @author tags.
             [exec] 
             [exec]     +1 tests included.  The patch appears to include 3 new or modified tests.
             [exec] 
             [exec]     +1 javadoc.  The javadoc tool did not generate any warning messages.
             [exec] 
             [exec]     +1 javac.  The applied patch does not increase the total number of javac compiler warnings.
             [exec] 
             [exec]     +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.
        
        Show
        Kihwal Lee added a comment - New patch with additional test. Result of test-patch on 0.20-securuty: [exec] +1 overall. [exec] [exec] +1 @author. The patch does not contain any @author tags. [exec] [exec] +1 tests included. The patch appears to include 3 new or modified tests. [exec] [exec] +1 javadoc. The javadoc tool did not generate any warning messages. [exec] [exec] +1 javac. The applied patch does not increase the total number of javac compiler warnings. [exec] [exec] +1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12492403/linux_tc_fix.patch.txt
        against trunk revision .

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

        -1 tests included. The patch doesn't appear to include any new or modified tests.
        Please justify why no new tests are needed for this patch.
        Also please list what manual steps were performed to verify this patch.

        -1 patch. The patch command could not apply the patch.

        Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/566//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12492403/linux_tc_fix.patch.txt against trunk revision . +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. -1 patch. The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/566//console This message is automatically generated.
        Hide
        Kihwal Lee added a comment -

        This bug does not exist in trunk/branch-0.23. The native task-controller no longer executes the java JobLocalizer.

        Show
        Kihwal Lee added a comment - This bug does not exist in trunk/branch-0.23. The native task-controller no longer executes the java JobLocalizer.

          People

          • Assignee:
            Kihwal Lee
            Reporter:
            Kihwal Lee
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved:

              Development