Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-5097

Job.addArchiveToClassPath is ignored when running job with LocalJobRunner

    Details

    • Type: Bug Bug
    • Status: Patch Available
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: test
    • Labels:
      None

      Description

      Using external dependency jar in mr job. Adding it to the job classpath via Job.addArchiveToClassPath(...) doesn't work when running with LocalJobRunner (i.e. in unit test). This makes it harder to unit-test such jobs (with third-party runtime dependencies).

      1. MAPREDUCE-5097-ugly-test.patch
        7 kB
        Alex Baranau
      2. MAPREDUCE-5097.patch
        1 kB
        Alex Baranau

        Activity

        Alex Baranau created issue -
        Alex Baranau made changes -
        Field Original Value New Value
        Assignee Alex Baranau [ alexb ]
        Alex Baranau made changes -
        Attachment MAPREDUCE-5097.patch [ 12575116 ]
        Attachment MAPREDUCE-5097-ugly-test.patch [ 12575117 ]
        Alex Baranau made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]

          People

          • Assignee:
            Alex Baranau
            Reporter:
            Alex Baranau
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development