hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amareshwari Sriramadasu (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-2867) Add a task's cwd to it's LD_LIBRARY_PATH
Date Tue, 20 May 2008 11:44:55 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-2867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Amareshwari Sriramadasu updated HADOOP-2867:

    Attachment: patch-2867.txt

Here is patch after incorporating review comments.

bq. @@ -170,6 +175,8 @@ There is no need to add the native libs that have been softlinked
to the LD_LIBRARY_PATH, they are already being added to the 'java.library.path' property.
On second thought, adding the directories that may have stuff that is not native libs at all,
kind of does not make senese to add them blindly. Since the users can provide symlinks in
the cwd for the cached libraries. This is not necessary. I removed the code which adds parent
directories of all mapred.cache.localFiles

bq. You should get the current value of LD_LIBRARY_PATH (actually to do it properly you should
check if you are in windows or unix and get the proper env variable) and append to it the
current working dir.
LD_LIBRARY_PATH is honored by Cygwin, though not by windows. And we support only Cygwin. So,
we dont need a check for windows explicitly for LD_LIBRARY_PATH environment variable.

> Add a task's cwd to it's LD_LIBRARY_PATH
> ----------------------------------------
>                 Key: HADOOP-2867
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2867
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: mapred
>    Affects Versions: 0.17.0
>            Reporter: Arun C Murthy
>            Assignee: Amareshwari Sriramadasu
>             Fix For: 0.18.0
>         Attachments: patch-2867.txt, patch-2867.txt, patch-2867.txt
> HADOOP-1660 added the task's cwd to it's java.library.path which means only java task's
can take advantage via System.load or System.loadLibrary... we should enhance it to support
Hadoop Pipes applications by adding it to the LD_LIBRARY_PATH so they can use dlopen/dlsym

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message