You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Arun C Murthy (JIRA)" <ji...@apache.org> on 2006/12/20 06:41:21 UTC

[jira] Created: (HADOOP-838) TaskRunner.run() doesn't pass along the 'java.library.path' to the child (task) jvm

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

                 Key: HADOOP-838
                 URL: http://issues.apache.org/jira/browse/HADOOP-838
             Project: Hadoop
          Issue Type: Bug
          Components: mapred
    Affects Versions: 0.9.2
            Reporter: Arun C Murthy
         Assigned To: Arun C Murthy


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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HADOOP-838) TaskRunner.run() doesn't pass along the 'java.library.path' to the child (task) jvm

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-838?page=all ]

Doug Cutting updated HADOOP-838:
--------------------------------

           Status: Resolved  (was: Patch Available)
    Fix Version/s: 0.10.0
       Resolution: Fixed

I just committed this.  Thanks, Arun!

> TaskRunner.run() doesn't pass along the 'java.library.path' to the child (task) jvm
> -----------------------------------------------------------------------------------
>
>                 Key: HADOOP-838
>                 URL: http://issues.apache.org/jira/browse/HADOOP-838
>             Project: Hadoop
>          Issue Type: Bug
>          Components: mapred
>    Affects Versions: 0.9.2
>            Reporter: Arun C Murthy
>         Assigned To: Arun C Murthy
>             Fix For: 0.10.0
>
>         Attachments: HADOOP-838_20061220_1.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HADOOP-838) TaskRunner.run() doesn't pass along the 'java.library.path' to the child (task) jvm

Posted by "Nigel Daley (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-838?page=comments#action_12460083 ] 
            
Nigel Daley commented on HADOOP-838:
------------------------------------

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

> TaskRunner.run() doesn't pass along the 'java.library.path' to the child (task) jvm
> -----------------------------------------------------------------------------------
>
>                 Key: HADOOP-838
>                 URL: http://issues.apache.org/jira/browse/HADOOP-838
>             Project: Hadoop
>          Issue Type: Bug
>          Components: mapred
>    Affects Versions: 0.9.2
>            Reporter: Arun C Murthy
>         Assigned To: Arun C Murthy
>         Attachments: HADOOP-838_20061220_1.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HADOOP-838) TaskRunner.run() doesn't pass along the 'java.library.path' to the child (task) jvm

Posted by "Arun C Murthy (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-838?page=all ]

Arun C Murthy updated HADOOP-838:
---------------------------------

    Attachment: HADOOP-838_20061220_1.patch

Straight-forward fix...

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

> TaskRunner.run() doesn't pass along the 'java.library.path' to the child (task) jvm
> -----------------------------------------------------------------------------------
>
>                 Key: HADOOP-838
>                 URL: http://issues.apache.org/jira/browse/HADOOP-838
>             Project: Hadoop
>          Issue Type: Bug
>          Components: mapred
>    Affects Versions: 0.9.2
>            Reporter: Arun C Murthy
>         Assigned To: Arun C Murthy
>         Attachments: HADOOP-838_20061220_1.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HADOOP-838) TaskRunner.run() doesn't pass along the 'java.library.path' to the child (task) jvm

Posted by "Arun C Murthy (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-838?page=all ]

Arun C Murthy updated HADOOP-838:
---------------------------------

    Status: Patch Available  (was: Open)

Thanks for the review Nigel!

> TaskRunner.run() doesn't pass along the 'java.library.path' to the child (task) jvm
> -----------------------------------------------------------------------------------
>
>                 Key: HADOOP-838
>                 URL: http://issues.apache.org/jira/browse/HADOOP-838
>             Project: Hadoop
>          Issue Type: Bug
>          Components: mapred
>    Affects Versions: 0.9.2
>            Reporter: Arun C Murthy
>         Assigned To: Arun C Murthy
>         Attachments: HADOOP-838_20061220_1.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HADOOP-838) TaskRunner.run() doesn't pass along the 'java.library.path' to the child (task) jvm

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-838?page=comments#action_12460125 ] 
            
Hadoop QA commented on HADOOP-838:
----------------------------------

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

> TaskRunner.run() doesn't pass along the 'java.library.path' to the child (task) jvm
> -----------------------------------------------------------------------------------
>
>                 Key: HADOOP-838
>                 URL: http://issues.apache.org/jira/browse/HADOOP-838
>             Project: Hadoop
>          Issue Type: Bug
>          Components: mapred
>    Affects Versions: 0.9.2
>            Reporter: Arun C Murthy
>         Assigned To: Arun C Murthy
>         Attachments: HADOOP-838_20061220_1.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira