Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-5607

Yarn Nodemanager Metrics only update every few minutes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.1
    • 1.6.1
    • None
    • None
    • sles11sp1

    Description

      Yarn Nodemanager Metrics take far too long between updates.

      To demonstrate:

      Run Terasort or anything that runs mapreduce:

      hdfs dfs -mkdir -p benchmarks/terasort
      hadoop jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar teragen -Dmapred.map.tasks=72 -Dmapred.reduce.tasks=36  1000000 benchmarks/terasort/input
      hadoop jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar terasort -Dmapred.map.tasks=72 -Dmapred.reduce.tasks=36 benchmarks/terasort/input benchmarks/terasort/output
      hdfs dfs -rm -R -skipTrash benchmarks/terasort
      

      Then repeatedly probe the API at:

      https://<server>:8081/api/v1/clusters/c1/services/YARN/components/NODEMANAGER?fields=host_components/metrics/yarn

      It usually takes 2-3 minutes to see the metrics update, very repeatable.

      Attachments

        Issue Links

          Activity

            People

              dsen Dmytro Sen
              miharp Michael Harp
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: