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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        21h 14m 1 Arun C Murthy 21/Dec/06 02:55
        Patch Available Patch Available Resolved Resolved
        19h 44m 1 Doug Cutting 21/Dec/06 22:39
        Resolved Resolved Closed Closed
        15d 43m 1 Doug Cutting 05/Jan/07 23:22
        Owen O'Malley made changes -
        Component/s mapred [ 12310690 ]
        Doug Cutting made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Doug Cutting made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 0.10.0 [ 12312207 ]
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hide
        Doug Cutting added a comment -

        I just committed this. Thanks, Arun!

        Show
        Doug Cutting added a comment - I just committed this. Thanks, Arun!
        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.
        Arun C Murthy made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Hide
        Arun C Murthy added a comment -

        Thanks for the review Nigel!

        Show
        Arun C Murthy added a comment - Thanks for the review Nigel!
        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.
        Arun C Murthy made changes -
        Field Original Value New Value
        Attachment HADOOP-838_20061220_1.patch [ 12347564 ]
        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 created issue -

          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