Uploaded image for project: '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
    • Status: Closed
    • Priority: 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

        Hide
        acmurthy Arun C Murthy added a comment -

        Straight-forward fix...

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

        Show
        acmurthy Arun C Murthy added a comment - Straight-forward fix... Mahadev: Can you confirm this works for you? Thanks!
        Hide
        nidaley 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
        nidaley 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
        acmurthy Arun C Murthy added a comment -

        Thanks for the review Nigel!

        Show
        acmurthy Arun C Murthy added a comment - Thanks for the review Nigel!
        Hide
        hadoopqa 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
        hadoopqa 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
        cutting Doug Cutting added a comment -

        I just committed this. Thanks, Arun!

        Show
        cutting Doug Cutting added a comment - I just committed this. Thanks, Arun!

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development