wiki:jazz/11-06-04

2011-06-04

Browser OS

Chukwa

Security

Ganglia

  • 參考 2011-02-10 的設定,不過卻只顯示一台。重新啟動 hadoop.nchc.org.tw
  • /etc/ganglia/gmond.conf
    • gmond.conf

      old new  
      1818 * of a <CLUSTER> tag.  If you do not specify a cluster tag, then all <HOSTS> will
      1919 * NOT be wrapped inside of a <CLUSTER> tag. */
      2020cluster {
      21   name = "unspecified"
      22   owner = "unspecified"
       21  name = "hadoop"
       22  owner = "NCHC"
      2323  latlong = "unspecified"
      24   url = "unspecified"
       24  url = "http://hadoop.nchc.org.tw"
      2525}
      2626
      2727/* The host section describes attributes of the host, like the location */
      2828host {
      29   location = "unspecified"
       29  location = "Taichung"
      3030}
      3131
      3232/* Feel free to specify as many udp_send_channels as you like.  Gmond
      3333   used to only support having a single channel */
      3434udp_send_channel {
      35   mcast_join = 239.2.11.71
       35#  mcast_join = 239.2.11.71
       36  host = hadoop
      3637  port = 8649
      37   ttl = 1
       38#  ttl = 1
      3839}
      3940
      4041/* You can specify as many udp_recv_channels as you like as well. */
      4142udp_recv_channel {
      42   mcast_join = 239.2.11.71
       43#  mcast_join = 239.2.11.71
      4344  port = 8649
      44   bind = 239.2.11.71
       45#  bind = 239.2.11.71
      4546}
  • /etc/ganglia/gmeta.conf
    • gmetad.conf

      old new  
      11# This is an example of a Ganglia Meta Daemon configuration file
      22#                http://ganglia.sourceforge.net/
      33#
      4 # $Id: gmetad.conf.in 1639 2008-08-09 23:30:32Z carenas $
       4# $Id: gmetad.conf.in 2014 2009-08-10 10:44:09Z d_pocock $
      55#
      66#-------------------------------------------------------------------------------
      77# Setting the debug_level to 1 will keep daemon in the forground and
       
      3636# data_source "my grid" 50 1.3.4.7:8655 grid.org:8651 grid-backup.org:8651
      3737# data_source "another source" 1.3.4.7:8655  1.3.4.8
      3838
      39 data_source "my cluster" localhost
       39data_source "hadoop" hadoop 192.168.1.1 192.168.1.2 192.168.1.3 192.168.1.4 192.168.1.5 192.168.1.6 192.168.1.7 192.168.1.8 192.168.1.9 192.168.1.10 192.168.1.11 192.168.1.12 192.168.1.13 192.168.1.14 192.168.1.15 192.168.1.16 192.168.1.17 192.168.1.18 192.168.1.19 192.168.1.20
      4040
      4141#
      4242# Round-Robin Archives
       
      7575# is always trusted.
      7676# default: There is no default value
      7777# trusted_hosts 127.0.0.1 169.229.50.165 my.gmetad.org
       78
       79trusted_hosts 127.0.0.1 192.168.1.1 192.168.1.2 192.168.1.3 192.168.1.4 192.168.1.5 192.168.1.6 192.168.1.7 192.168.1.8 192.168.1.9 192.168.1.10 192.168.1.11 192.168.1.12 192.168.1.13 192.168.1.14 192.168.1.15 192.168.1.16 192.168.1.17 192.168.1.18 192.168.1.19 192.168.1.20
       80
      7881#
      7982#-------------------------------------------------------------------------------
      8083# If you want any host which connects to the gmetad XML to receive
       
      112115# Where gmetad stores its round-robin databases
      113116# default: "/var/lib/ganglia/rrds"
      114117# rrd_rootdir "/some/other/place"
       118#
       119#-------------------------------------------------------------------------------
       120# In earlier versions of gmetad, hostnames were handled in a case
       121# sensitive manner
       122# If your hostname directories have been renamed to lower case,
       123# set this option to 0 to disable backward compatibility.
       124# From version 3.2, backwards compatibility will be disabled by default.
       125# default: 1   (for gmetad < 3.2)
       126# default: 0   (for gmetad >= 3.2)
       127case_sensitive_hostnames 1
       128
  • 不過原本有把每一台 DRBL Client 的 gmond.conf 關於 host 的部份改為每一台的 hostname。不成功~
GraphViz image
  • 現在反而把每台的 gmond.conf 改成 host = hadoop 就會成功。
GraphViz image
Last modified 13 years ago Last modified on Jun 4, 2011, 10:44:00 PM