[
https://issues.apache.org/jira/browse/MAPREDUCE-2801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098388#comment-13098388
]
Robert Joseph Evans commented on MAPREDUCE-2801:
------------------------------------------------
In the 0.20.20X code the tasktracker via the TaskRunner.java added in its own
java.library.path to the options passed down to the child. Under YARN this
will not work. It is the application master that determines the command line
that is used to launch the container not the nodemanager. So if the
application master is running on a system with a different java.library.path on
it then the system the container is running on then it will not work (Think
Hadoop is installed in a different location on different machines). Also the
application master does not have the java.library.path set because the client
did not set it when launching.
I think the best way to solve this is to add in code to the nodemanager that
would do a replace a @hadoop-java.library.path@ with the nodemanager's
java.library.path similar to how the application master will replace @taskid@
with the task id for the application. Any thoughts on this?
> Include the native libs in java.library.path
> ---------------------------------------------
>
> Key: MAPREDUCE-2801
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2801
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 0.23.0
> Reporter: Ramya Sunil
> Assignee: Robert Joseph Evans
> Fix For: 0.23.0
>
>
> For the child tasks in mrv2, java.library.path is set to just $PWD and the
> native libs are not included. Whereas in 0.20.x, java.library.path for child
> tasks was set to <path to native libs>:$PWD
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira