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

DistributedCache.addArchiveToClassPath doesn't work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.20.1, 0.21.0
    • Fix Version/s: None
    • Component/s: distributed-cache
    • Labels:
      None

      Description

      addArchiveToClassPath is a method of DistributedCache class. It should be called before running a task. It accepts path to a jar file on a DFS. After it
      this method should put this jar file on sitribuuted cache and than add this file to classpath to each map/reduce process on job tracker.

      This method don't work:

      in TaskRunner there is an algorithm that looks for correspondence between DFS paths and local paths in distributed cache.
      It compares

      if (archives[i].getPath().equals(
      archiveClasspaths[j].toString())){

      instead of

      if (archives[i].toString().equals(
      archiveClasspaths[j].toString()))

        Attachments

        1. MAPREDUCE-752.zip
          2 kB
          Vladimir Klimontovich
        2. MAPREDUCE-752.patch
          4 kB
          Vladimir Klimontovich
        3. MAPREDUCE-752-ver2.patch
          4 kB
          Vladimir Klimontovich
        4. MAPREDUCE-752-ver3.patch
          5 kB
          Vladimir Klimontovich

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                vklimontovich Vladimir Klimontovich
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: