Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-12495

Storage stats reported for Yarn is in MB instead of Bytes

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.1
    • Component/s: None
    • Labels:
      None
    • Release Notes:
      Fix the units for YARN memory stats on Administration UI page.
    • Rank:
      1|i007a7:

      Description

      The storage metrics returned by backend for Yarn stats is in MB. Other platform stats storage (hdfs, hbase, cdap etc., ) are returned in bytes. This causes incorrect metrics to be shown for Yarn in Admin screen.

      request: http://<host>:<port>/v3/system/serviceproviders/yarn/stats
      response:

      {
        ...
        {
          "UsedVCores": 9,
          "TotalVCores": 64,
          "TotalMemory": 11314,
          "UsedMemory": 5120,
          "FreeMemory": 6194,
          "FreeVCores": 55
        }
      }
      

      These are all in MB whereas it should have been in Bytes.

        Attachments

          Activity

            People

            • Assignee:
              ali.anwar Ali Anwar
              Reporter:
              ajai Ajai Narayan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: