Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: YARN-1011
    • Fix Version/s: YARN-1011
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The ResourceUtilization javadoc mistakenly documents the cpu as a percentage represented by a float number in [0, 1.0f], however it is used as the # of vcores used in reality.

      See javadoc and discussion in YARN-8911.
        /**
         * Get <em>CPU</em> utilization.
         *
         * @return <em>CPU utilization</em> normalized to 1 CPU
         */
        @Public
        @Unstable
        public abstract float getCPU();

        Attachments

        1. YARN-8932-YARN-1011.00.patch
          50 kB
          Haibo Chen
        2. YARN-8932-YARN-1011.01.patch
          61 kB
          Haibo Chen
        3. YARN-8932-YARN-1011.02.patch
          65 kB
          Haibo Chen

          Issue Links

            Activity

              People

              • Assignee:
                haibochen Haibo Chen
                Reporter:
                haibochen Haibo Chen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: