[ 
https://issues.apache.org/jira/browse/MAPREDUCE-4740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13482290#comment-13482290
 ] 

Hudson commented on MAPREDUCE-4740:
-----------------------------------

Integrated in Hadoop-Hdfs-0.23-Build #413 (See 
[https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/413/])
    svn merge -c 1401054 FIXES: MAPREDUCE-4740. only .jars can be added to the 
Distributed Cache classpath. Contributed by Robert Joseph Evans (Revision 
1401059)

     Result = SUCCESS
jlowe : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1401059
Files : 
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
* 
/hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/main/java/org/apache/hadoop/mapreduce/v2/util/MRApps.java
* 
/hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapreduce/v2/util/TestMRApps.java

                
> only .jars can be added to the Distributed Cache classpath
> ----------------------------------------------------------
>
>                 Key: MAPREDUCE-4740
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4740
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: mrv2
>    Affects Versions: 0.23.3, 2.0.2-alpha
>            Reporter: Robert Joseph Evans
>            Assignee: Robert Joseph Evans
>            Priority: Blocker
>             Fix For: 2.0.3-alpha, 0.23.5
>
>         Attachments: MR-4740.txt, MR-4740.txt, MR-4740.txt, MR-4740.txt
>
>
> Koji tracked down this one.
> {noformat}
> $ cat mycat.sh
> #!/bin/sh
> cat >& /dev/null
> $JAVA_HOME/bin/jinfo $PPID | grep java.class.path
> export | grep CLASSPATH
> ls -l 
> $ myfile=/user/me/myclasses.zip; yarn jar
> hadoop-streaming.jar
> -Dmapreduce.job.cache.archives=hdfs:///${myfile}
> -Dmapreduce.job.classpath.archives=${myfile} -input in.txt -output out 
> -reducer NONE -mapper mycat.sh  -file mycat.sh
> {noformat}
> So, cachearchive like class.zip or class.tar.gz were never set as part of the
> classpath even though they were properly set by 
> DistributedCache.addArchiveToClassPath.
> It looks like we are parsing the classpath out of the configs, but then 
> throwing that away.  It looks simple enough to add them in the correct place.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to