hadoop-mapreduce-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johannes Zillmann (JIRA)" <j...@apache.org>
Subject [jira] Created: (MAPREDUCE-1581) DistributedCache#addXxxToClassPath() fails silently if qualified pathes are passed in
Date Tue, 09 Mar 2010 10:45:27 GMT
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.


Mime
View raw message