Hadoop Common
  1. Hadoop Common
  2. HADOOP-838

TaskRunner.run() doesn't pass along the 'java.library.path' to the child (task) jvm

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.2
    • Fix Version/s: 0.10.0
    • Component/s: None
    • Labels:
      None

      Description

      Since TaskRunner.run doesn't pass along java.library.path of the parent (TT) to the child (task) the native library path (if needed) is missing and hence it cannot load the native library. The fix is to do a System.getProperty and add it to the child jvm's arguments.

        Activity

        Arun C Murthy created issue -
        Hide
        Arun C Murthy added a comment -

        Straight-forward fix...

        Mahadev: Can you confirm this works for you? Thanks!

        Show
        Arun C Murthy added a comment - Straight-forward fix... Mahadev: Can you confirm this works for you? Thanks!
        Arun C Murthy made changes -
        Field Original Value New Value
        Attachment HADOOP-838_20061220_1.patch [ 12347564 ]
        Hide
        Nigel Daley added a comment -

        +1

        With LD_LIBRARY_PATH set to not include the hadoop native library, I successfully ran all the unit tests and saw that the native library was always loaded.

        Show
        Nigel Daley added a comment - +1 With LD_LIBRARY_PATH set to not include the hadoop native library, I successfully ran all the unit tests and saw that the native library was always loaded.
        Hide
        Arun C Murthy added a comment -

        Thanks for the review Nigel!

        Show
        Arun C Murthy added a comment - Thanks for the review Nigel!
        Arun C Murthy made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Hide
        Hadoop QA added a comment -

        +1, because http://issues.apache.org/jira/secure/attachment/12347564/HADOOP-838_20061220_1.patch applied and successfully tested against trunk revision r489190.

        Show
        Hadoop QA added a comment - +1, because http://issues.apache.org/jira/secure/attachment/12347564/HADOOP-838_20061220_1.patch applied and successfully tested against trunk revision r489190.
        Hide
        Doug Cutting added a comment -

        I just committed this. Thanks, Arun!

        Show
        Doug Cutting added a comment - I just committed this. Thanks, Arun!
        Doug Cutting made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 0.10.0 [ 12312207 ]
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Doug Cutting made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Owen O'Malley made changes -
        Component/s mapred [ 12310690 ]

          People

          • Assignee:
            Arun C Murthy
            Reporter:
            Arun C Murthy
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development