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

Job.addArchiveToClassPath is ignored when running job with LocalJobRunner

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • test

    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).

      Attachments

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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            alexb Alex Baranau
            alexb Alex Baranau

            Dates

              Created:
              Updated:

              Slack

                Issue deployment