I use hadoop-2.0.5 and config hadoop-metrics2.properties file with below
content.
*.sink.ganglia.class=org.
apache.hadoop.metrics2.sink.ganglia.GangliaSink31
*.sink.ganglia.period=10
*.sink.ganglia.supportsparse=true
namenode.sink.ganglia.servers=10.232.98.74:8649
datanode.sink.ganglia.servers=10.232.98.74:8649

I write one programme that call FSDataOutputStream.hsync() method once per
second.

There is "@Metric MutableCounterLong fsyncCount" metrics in
DataNodeMetrics, when FSDataOutputStream.hsync() method is called, the
value of  fsyncCount is increased, dataNode send the value of  fsyncCount
to ganglia every ten seconds, so I think the value  of  fsyncCount in
ganglia should be 10, 20 ,30, 40 and so on .  but the ganglia display
1,1,1,1,1 ...... , so the value is
the value of fsyncCount is set to zero every ten seconds and
”fsyncCount.value/10“ .


Is  the the value of MutableCounterLong class  set to zero every ten
seconds and   MutableCounterLong .value/10?

Thanks,

LiuLei

Reply via email to