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

JobControl: polling interval should not be hard coded

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • client
    • None

    Description

      The JobControl mechanism relies on a polling mechanism which is implemented in JobControl.run().

      The polling period is currently hard coded to 5s in the run() method making it almost impossible to tune. However, I believe that it will be good to let the users set this value. Some applications could want it in production and it would speed up the local mode and integration tests a lot. In my current project, nearly half of the time of the test suite is spend in this single line. Pig had the same issue, and decided to "crazily" hack the JobControl class rather than fixing it in the upstream (see PIG-2702).

      AFAIK it could be easily done by providing a new ctor or a new setter. This change would not break the compatibility. I can provide a patch if this change seems reasonable.

      Attachments

        Activity

          People

            Unassigned Unassigned
            clement@unportant.info Clément MATHIEU
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: