我正在使用ganglia
来监控Hadoop
。 gmond
和gmetad
正常运行。当我在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
}
答案 0 :(得分:0)
我发现了这个问题。它与hadoop
指标属性相关。我在ganglia
中设置了hadoop-metrics.properties
,但我必须设置hadoop-metrics.properties
配置文件。现在ganglia
会抛出正确的指标。