Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-3618

Fix unused variable to get CPU frequency on Windows systems

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 2.7.0
    • None
    • yarn
    • Windows 7 x64 SP1

    • Patch

    Description

      In the class 'WindowsResourceCalculatorPlugin.java' of the YARN project, there is an unused variable for CPU frequency.

      " /**

      {@inheritDoc}

      */
      @Override
      public long getCpuFrequency()

      { refreshIfNeeded(); return -1; }

      "

      Please change '-1' to use 'cpuFrequencyKhz'.

      org/apache/hadoop/yarn/util/WindowsResourceCalculatorPlugin.java

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xafero Georg Berendt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified