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] Commented: (HADOOP-2867) Add a task's cwd to it's LD_LIBRARY_PATH
Date Tue, 20 May 2008 06:43:55 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-2867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598197#action_12598197
] 

Amareshwari Sriramadasu commented on HADOOP-2867:
-------------------------------------------------

bq. You should not start with an empty Map for the environment, that will trash the existing
environment. You should get from ProcessBuilder the Map with the current environment and modify
that one.

In org.apache.hadoop.util.Shell.java, the environment passed is set using
{code}
      builder.environment().putAll(this.environment);
{code}
This (http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ProcessBuilder.html#environment())
say that the _a process builder is created, the environment is initialized to a copy of the
current process environment. And the returned object may be modified using ordinary Map operations._
So, Map.putAll will add the new environment to the existing environment, will not replace.


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

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


Mime
View raw message