Is the the value of MutableCounterLong class set to zero per 10 seconds?
2013/8/6 lei liu <liulei...@gmail.com> > Is the the value of MutableCounterLong class set to zreo per 10 seconds? > > > 2013/8/6 lei liu <liulei...@gmail.com> > >> There is "@Metric MutableCounterLong fsyncCount" metrics in >> DataNodeMetrics, the MutableCounterLong class continuously increase the >> value, so I think the value in ganglia should be "10, 20 ,30, 40" and so >> on. but the value the value is fsyncCount.value/10, that is in "1 ,1 , 1 >> , 1" in ganglia. >> >> How does ganglia to display the value of MutableCounterLong class? Is >> that "fsyncCount.value" or "fsyncCount.value/10"? >> >> >> >> >> 2013/8/6 lei liu <liulei...@gmail.com> >> >>> 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, the MutableCounterLong class continuously increase the >>> value, so I think the value in ganglia should be 10, 20 ,30, 40 and so on. >>> but the value in ganglia is below: >>> >>> >>> [image: dw62.kgb.sqa.cm4 dfs.datanode.FsyncCount] >>> >>> >>> I want to know the ganglia how to display the value of >>> MutableCounterLong class? >>> >>> Thanks, >>> >>> LiuLei >>> >> >> >