[
https://issues.apache.org/jira/browse/HADOOP-4612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646252#action_12646252
]
Sharad Agarwal commented on HADOOP-4612:
----------------------------------------
Following code was added as part of HADOOP-3570 :
{code}
//adding libjars to the classpath
Configuration conf = JobClient.getCommandLineConfig();
URL[] libJars = GenericOptionsParser.getLibJars(conf);
if(libJars!=null) {
for(URL url : libJars){
classPath.add(url);
}
}
{code}
This is no more required after HADOOP-3722. However currently the classes
loaded in StreamUtil via Class.forName is incorrect. It should use
Configuration#getClassByName to load the libjars' classes set in the conf
classloader by GenericOptionsParser.
> Remove RunJar's dependency on JobClient
> ---------------------------------------
>
> Key: HADOOP-4612
> URL: https://issues.apache.org/jira/browse/HADOOP-4612
> Project: Hadoop Core
> Issue Type: Sub-task
> Reporter: Sharad Agarwal
> Assignee: Sharad Agarwal
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.