Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-5108 Changes needed for Binary Compatibility for MR applications via YARN
  3. MAPREDUCE-4942

mapreduce.Job has a bunch of methods that throw InterruptedException so its incompatible with MR1

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2-alpha
    • Fix Version/s: 2.1.0-beta
    • Component/s: mrv2
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change, Reviewed

      Description

      The following methods in MR2's org.apache.hadoop.mapreduce.Job throw an InterruptedException but don't in MR1, which makes them incompatible. (Their Javadoc comments are also missing that they throw an InterruptedException anyway)

      I propose that we wrap the InterruptedException in a RuntimeException.

      public float setupProgress() throws IOException, InterruptedException
      public float mapProgress() throws IOException, InterruptedException
      public float reduceProgress() throws IOException, InterruptedException
      public boolean isComplete() throws IOException, InterruptedException
      public boolean isSuccessful() throws IOException, InterruptedException
      public void killJob() throws IOException, InterruptedException
      public void killTask(org.apache.hadoop.mapreduce.TaskAttemptID) throws IOException, InterruptedException
      public void failTask(org.apache.hadoop.mapreduce.TaskAttemptID) throws IOException, InterruptedException
      public Counters getCounters() throws IOException, InterruptedException
      

        Attachments

        1. MAPREDUCE-4942.patch
          12 kB
          Robert Kanter

        Issue Links

          Activity

            People

            • Assignee:
              rkanter Robert Kanter
              Reporter:
              rkanter Robert Kanter

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment