Use Ganglia to monitor Hadoop

Source: Internet
Author: User
Hadoop provides interfaces for many monitoring tools, such as JMX, Nagios, and Ganglia. Using Ganglia to monitor hadoop is easy to configure, just modify the $ HADOOP_HOMEconfhadoop-metrics.properties file and change the relevant configuration segment to the following example: # Configurationofthedfscontextforganglia # P Hadoop provides interfaces for many monitoring tools, such as JMX, Nagios, and Ganglia. Using Ganglia to monitor hadoop is easy to configure. You only need to modify $ HADOOP_HOME/conf/hadoop-me TrIn the ics. properties file, modify the relevant configuration section to the following example:
 
  1. # Configuration of"DfS "contExT for ganglia
  2. # Pick one: Ganglia 3.0 (foRmEr) or Ganglia 3.1 (latter)
  3. #Dfs. class=Org. Apache. hadoop. metrics. ganglia. GangliaContext
  4. Dfs. class=Org. Apache. hadoop. metrics. ganglia. GangliaContext31
  5. Dfs. period=10 
  6. Dfs. servers=192. 168.9.45: 8649/* The address is the address of the Ganglia monitoring server.
  7.  
  8. # Configuration of the "maprEd"Context for ganglia
  9. # Pick one: Ganglia 3.0 (former) or Ganglia 3.1 (latter)
  10. #Mapred. class=Org. Apache. hadoop. metrics. ganglia. GangliaContext
  11. Mapred. class=Org. Apache. hadoop. metrics. ganglia. GangliaContext31
  12. Mapred. period=10 
  13. Mapred. servers=192. 16 8.9.45: 8649 
  14.  
  15. # Configuration of the "jvm" context for ganglia
  16. Jvm. class=Org. Apache. hadoop. metrics. ganglia. GangliaContext
  17. Jvm. period=10 
  18. Jvm. servers=192. 16 8.9.45: 8649
Keep the default value for other parts of the configuration file.
Distribute the configuration file to various datanode nodes and restart hadoop.ClusterYou can see the running status of each Hadoop node on the monitoring page of Ganglia.
Note: My Hadoop version is cloudera and the version isHadoop-0.20.2-CDH3B4; Different Hadoop versions may have different things to modify.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.