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

JobImpl uber checks for cpu are wrong

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.3-alpha
    • Fix Version/s: 2.0.3-alpha
    • Component/s: mrv2
    • Labels:
      None

      Description

      The cpu checks for uberizing have two issues:

      1. the defaults are hardcoded instead of using the conf defaults
      2. the comparison against the sys cpu size is using < instead of <=
          boolean smallCpu =
              (
                  Math.max(
                      conf.getInt(MRJobConfig.MAP_CPU_VCORES, 1), 
                      conf.getInt(MRJobConfig.REDUCE_CPU_VCORES, 1)) < 
                   sysCPUSizeForUberSlot
              );
      

      Everything is defaulting to 1, so uber cpu checks are now disabled causing TestUberAM to fail.

        Attachments

        1. MAPREDUCE-4936.patch
          1 kB
          Arun Murthy

          Issue Links

            Activity

              People

              • Assignee:
                acmurthy Arun Murthy
                Reporter:
                daryn Daryn Sharp
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: