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

NodeManager metrics returning wrong negative values

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.7.3
    • Fix Version/s: None
    • Component/s: metrics
    • Labels:
      None

      Description

      It looks like the metrics returned by the NodeManager have negative values for metrics that never should be negative. Here is an output form NM endpoint

      /jmx?qry=Hadoop:service=NodeManager,name=NodeManagerMetrics
      
      {
        "beans" : [ {
          "name" : "Hadoop:service=NodeManager,name=NodeManagerMetrics",
          "modelerType" : "NodeManagerMetrics",
          "tag.Context" : "yarn",
          "tag.Hostname" : "<HOST>",
          "ContainersLaunched" : 707,
          "ContainersCompleted" : 9,
          "ContainersFailed" : 124,
          "ContainersKilled" : 579,
          "ContainersIniting" : 0,
          "ContainersRunning" : 19,
          "AllocatedGB" : -26,
          "AllocatedContainers" : -5,
          "AvailableGB" : 252,
          "AllocatedVCores" : -5,
          "AvailableVCores" : 101,
          "ContainerLaunchDurationNumOps" : 718,
          "ContainerLaunchDurationAvgTime" : 18.0
        } ]
      }
      

      Is there any circumstance under which the value for AllocatedGB, AllocatedContainers and AllocatedVCores go below 0?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                abkshvn Abhishek Shivanna
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: