hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enis Soztutar (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-1982) TaskTracker provided java.library.path is lost if set in the job.xml
Date Tue, 02 Oct 2007 08:19:50 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-1982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531710
] 

Enis Soztutar commented on HADOOP-1982:
---------------------------------------

The lines below gets the library.path from System, apends them to the arguments to child task
process. Are you sure there is a problem ? If so, could you please give more detail ASAP?


{code}
String libraryPath = System.getProperty("java.library.path");
        if (libraryPath != null) {
          boolean hasLibrary = false;
          for(int i=0; i<javaOptsSplit.length ;i++) { 
            if(javaOptsSplit[i].startsWith("-Djava.library.path=")) {
              javaOptsSplit[i] += sep + libraryPath;
              hasLibrary = true;
              break;
            }
          }
          if(!hasLibrary)
            vargs.add("-Djava.library.path=" + libraryPath);
        }
{code}


> TaskTracker provided java.library.path is lost if set in the job.xml
> --------------------------------------------------------------------
>
>                 Key: HADOOP-1982
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1982
>             Project: Hadoop
>          Issue Type: Bug
>          Components: mapred
>         Environment: all
>            Reporter: Alejandro Abdelnur
>            Priority: Blocker
>             Fix For: 0.14.2
>
>
> if a job 'mapred.child.java.opts' property includes a '-Djava.library.path" option this
overrides the one set by the TaskTracker when setting up the taskrunner.
> instead it should append it.

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