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 "Enis Soztutar (JIRA)" <ji...@apache.org> on 2007/10/02 10:19:50 UTC
[jira] Commented: (HADOOP-1982) TaskTracker provided
java.library.path is lost if set in the job.xml
[ 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.