Member since
10-03-2017
1
Post
0
Kudos Received
0
Solutions
10-03-2017
11:33 AM
@Nidhee Jaiswal Teh Ambari Server does not store the YARN (or other components) metrics data. But Ambari Metrics Collector Does that. We can use the following kind of APIs t find out the Heap & Non Heap Memory Consumed by the Yarn Resource Manager: Example: For Heap Max http://kamb25103.example.com:6188/ws/v1/timeline/metrics?metricNames=jvm.JvmMetrics.MemHeapMaxM._max&hostname=%&appId=resourcemanager&instanceId=&startTime=1507008440&endTime=1507030040 For Heap Used http://kamb25103.example.com:6188/ws/v1/timeline/metrics?metricNames=jvm.JvmMetrics.MemHeapUsedM._max&hostname=%&appId=resourcemanager&instanceId=&startTime=1507008440&endTime=1507030040 For Heap Committed http://kamb25103.example.com:6188/ws/v1/timeline/metrics?metricNames=jvm.JvmMetrics.MemHeapCommittedM._max&hostname=%&appId=resourcemanager&instanceId=&startTime=1507008440&endTime=1507030040 For Non Heap Used http://kamb25103.example.com:6188/ws/v1/timeline/metrics?metricNames=jvm.JvmMetrics.MemNonHeapUsedM._max&hostname=%&appId=resourcemanager&instanceId=&startTime=1507008440&endTime=1507030040 For Non Heap Committed http://kamb25103.example.com:6188/ws/v1/timeline/metrics?metricNames=jvm.JvmMetrics.MemNonHeapCommittedM._max&hostname=%&appId=resourcemanager&instanceId=&startTime=1507008440&endTime=1507030040 . Here the "kamb25103.example.com:6188" need to be replaced with the "timeline.metrics.service.webapp.address" . You can also use the Grafana (which actually pulls data fromAmbari Metrics) to see the memory use graph based on different time time interval: https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.2.0/bk_ambari-operations/content/grafana_yarn_queues.html https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.2.0/bk_ambari-operations/content/grafana_yarn_dashboards.html .
... View more