问题监测hadoop响应

时间:2015-06-17 19:54:31

标签: hadoop cluster-computing ganglia gmetad

我正在使用ganglia来监控Hadoopgmondgmetad正常运行。当我在gmond端口(8649)上telnet时,当我在gmetad应答端口上telnet xml时,我没有获得hadoop数据。怎么会这样 ?

cluster {
  name = "my cluster"
  owner = "Master"
  latlong = "unspecified"
  url = "unspecified"
}

host {
  location = localhost
}

udp_send_channel {
  #bind_hostname = yes 
  #mcast_join = 239.2.11.71
  host = localhost
  port = 8649
  ttl = 1
}

udp_recv_channel {
  #mcast_join = 239.2.11.71
  port = 8649
  retry_bind = true
  # Size of the UDP buffer. If you are handling lots of metrics you really
  # should bump it up to e.g. 10MB or even higher.
  # buffer = 10485760
}

tcp_accept_channel {
  port = 8649
  # If you want to gzip XML output
  gzip_output = no
}

1 个答案:

答案 0 :(得分:0)

我发现了这个问题。它与hadoop指标属性相关。我在ganglia中设置了hadoop-metrics.properties,但我必须设置hadoop-metrics.properties配置文件。现在ganglia会抛出正确的指标。