Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-1496

Sqoop2: Revisit/Refactor the SubmissionEngine/ExecutionEngine APIs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.99.4
    • from/to
    • None
    • None

    Description

      Here are the things this ticket should address

      1. Refactor the submit() in JobManager ( it is way too long for any good unit testing to happen)

      2. Revisit the Execution Engine and Submission Engine relationship in the code.

      ExecutionEngine api should probably not create a submissionRequest. It should be the inverse. The Submission Engine is an abstraction of a JobTracker/ YARN/ Mesos/ OOzie. It will create a job request for the execution engine while it submits the job into the execution engine

      a) Suggest renaming SubmissionEngine to a JobSubmissionManager.

      b) SubmissionRequest is a JobRunRequest. See the java doc on the current code SubmissionRequest, it should already hint us that this object holds the job context to aid the execution engine

      c) Change the apis in Execution Engine/ SubmissionManager to reflect the same, i.e rename prepareSubmissionRequest to prepareJobRequest

      d) The Submission term is overloaded in the code base. In one case it is used to represent the JobRuns( history of the jobs) and in another place it is the submission engine such as JobTracker/YARN/ OOzie. The act of submitting creates a submission record. So submission is an artifact of completing//failing a submit request. Prior to that it is still a job request.

      YARN is an example of a submission engine and it can do much more than submissions, so at some point we should revisit and outline what the responsibilities of the submission engine API should be,

      e) define other responsibilities of the submission engine. For instance, if we are to add more monitoring/ tracking into how the job execution is progressing, we should be able to add those apis to this entity. There is more room for improvement for this api

      3. Lastly add unit test for the JobManager!

      Attachments

        1. SQOOP-1496.patch
          188 kB
          Veena Basavaraj
        2. Screen Shot 2014-09-08 at 2.35.06 PM.png
          124 kB
          Veena Basavaraj

        Issue Links

          Activity

            People

              vybs Veena Basavaraj
              vybs Veena Basavaraj
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: