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

Backport the Job.getInstance methods from MAPREDUCE-1505 to branch-1

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.2.0
    • Component/s: mrv1
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Backported new APIs to get a Job object to 1.2.0 from 2.0.0. Job API static methods Job.getInstance(), Job.getInstance(Configuration) and Job.getInstance(Configuration, jobName) are now available across both releases to avoid porting pain.

      Description

      In 2.x MR, the Job constructors have all been deprecated in favor of Job.getInstance() calls to get a Job object.

      However, these getInstance methods do not appear to be present in the 1.x MR API, and thereby may cause additional pain to users moving from 1.x to 2.x going forward.

      This patch proposes to add in the getInstance style of methods with suitable test coverage for both style of constructors, while not pulling in anything else from MAPREDUCE-1505 (as we lack 'Cluster' in 1.x). As we're not going to be deprecating the regular ctors in a 1.x release, this is not an incompatible change in any way.

        Activity

        Harsh J created issue -
        Harsh J made changes -
        Field Original Value New Value
        Attachment MAPREDUCE-4415.patch [ 12535738 ]
        Harsh J made changes -
        Description In 2.x MR, the Job constructors have all been deprecated in favor of Job.getInstance() calls to get a Job object.

        However, these getInstance methods do not appear to be present in the 1.x MR API, and thereby may cause additional pain to users moving from 1.x to 2.x going forward.

        This patch proposes to add in the getInstance style of methods with suitable test coverage for both style of constructors, while not pulling in anything else from MAPREDUCE-1505 (as we lack 'Cluster' in 1.x). As we're not going to be deprecating in a 1.x release, this is not an incompatible change in any way.
        In 2.x MR, the Job constructors have all been deprecated in favor of Job.getInstance() calls to get a Job object.

        However, these getInstance methods do not appear to be present in the 1.x MR API, and thereby may cause additional pain to users moving from 1.x to 2.x going forward.

        This patch proposes to add in the getInstance style of methods with suitable test coverage for both style of constructors, while not pulling in anything else from MAPREDUCE-1505 (as we lack 'Cluster' in 1.x). As we're not going to be deprecating the regular ctors in a 1.x release, this is not an incompatible change in any way.
        Harsh J made changes -
        Hadoop Flags Reviewed [ 10343 ]
        Release Note Backported new APIs to get a Job object to 1.x from 2.x: Job.getInstance(), Job.getInstance(Configuration) and Job.getInstance(Configuration, jobName) Backported new APIs to get a Job object to 1.2.0 from 2.0.0. Job API static methods Job.getInstance(), Job.getInstance(Configuration) and Job.getInstance(Configuration, jobName) are now available across both releases to avoid porting pain.
        Fix Version/s 1.2.0 [ 12321661 ]
        Target Version/s 1.2.0 [ 12321661 ]
        Harsh J made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Matt Foley made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Harsh J
            Reporter:
            Harsh J
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development