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

NodeManager metrics returning wrong negative values

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.7.3
    • None
    • metrics
    • 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

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

          People

            Unassigned Unassigned Assign to me
            abkshvn Abhishek Shivanna
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment