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

Fix WindowsResourceCalculatorPlugin.getCpuFrequency() returning always -1

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.7.0
    • 2.8.0, 3.0.0-alpha1
    • None
    • None
    • Windows 7 x64 SP1

    • Reviewed

    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            andreina J.Andreina Assign to me
            xafero Georg Berendt
            Votes:
            0 Vote for this issue
            Watchers:
            4 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

              Issue deployment