Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-1581

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: distributed-cache
    • Labels:
      None

      Description

      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!

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                oae Johannes Zillmann
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated: