DistributedCache#addXxxToClassPath() fails silently if qualified pathes are 
passed in
-------------------------------------------------------------------------------------

                 Key: MAPREDUCE-1581
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1581
             Project: Hadoop Map/Reduce
          Issue Type: Improvement
          Components: distributed-cache
            Reporter: Johannes Zillmann
            Priority: Minor


In both methods (addFileToClassPath & addArchiveToClassPath) you can specify a 
path. If this path is fully qualified (hdfs:///....) the files are not in the 
job classpath.
(since the : in the path is also used as path separator).

So i think with one of the following simple improvements:
- throw an exception if the specified path is fully qualified
- OR disqualify the path (f.e. with new Path(path.toUri().getPath()))

people would have an easier start with the DistributedCache!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to