简体   繁体   中英

How to find the CPU consummed last day on Hadoop without Ambari

I would like to know how to find the CPU consumed last day on my Hadoop cluster without Ambari, because I will need to use a Shell script.

I have ganglia up and running, I can see the graph for the CPU last day on Ambari. If ganglia can give you this result, I suppose it saved the data somewhere? What file? And how can I get it?

This question is already answered here How to get data from ganglia's database

To summarize the answer above

  1. The ganglia RRD location is at /var/lib/ganglia/rrds
  2. To dump a particular RRD file as plain text use the "rrdtool" command

Both the above info is captured in the question linked above

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM