HBASE-5802 Change the default metrics class to NullContextWithUpdateThread
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1339831 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1df5bcad82
commit
a6628467e1
|
@ -10,12 +10,15 @@
|
|||
# GMETADHOST_IP is the hostname (or) IP address of the server on which the ganglia
|
||||
# meta daemon (gmetad) service is running
|
||||
|
||||
# Configuration of the "hbase" context for null
|
||||
hbase.class=org.apache.hadoop.metrics.spi.NullContext
|
||||
# Configuration of the "hbase" context for NullContextWithUpdateThread
|
||||
# NullContextWithUpdateThread is a null context which has a thread calling
|
||||
# periodically when monitoring is started. This keeps the data sampled
|
||||
# correctly.
|
||||
hbase.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread
|
||||
hbase.period=10
|
||||
|
||||
# Configuration of the "hbase" context for file
|
||||
# hbase.class=org.apache.hadoop.hbase.metrics.file.TimeStampingFileContext
|
||||
# hbase.period=10
|
||||
# hbase.fileName=/tmp/metrics_hbase.log
|
||||
|
||||
# HBase-specific configuration to reset long-running stats (e.g. compactions)
|
||||
|
@ -30,11 +33,11 @@ hbase.extendedperiod = 3600
|
|||
# hbase.servers=GMETADHOST_IP:8649
|
||||
|
||||
# Configuration of the "jvm" context for null
|
||||
jvm.class=org.apache.hadoop.metrics.spi.NullContext
|
||||
jvm.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread
|
||||
jvm.period=10
|
||||
|
||||
# Configuration of the "jvm" context for file
|
||||
# jvm.class=org.apache.hadoop.hbase.metrics.file.TimeStampingFileContext
|
||||
# jvm.period=10
|
||||
# jvm.fileName=/tmp/metrics_jvm.log
|
||||
|
||||
# Configuration of the "jvm" context for ganglia
|
||||
|
@ -45,11 +48,11 @@ jvm.class=org.apache.hadoop.metrics.spi.NullContext
|
|||
# jvm.servers=GMETADHOST_IP:8649
|
||||
|
||||
# Configuration of the "rpc" context for null
|
||||
rpc.class=org.apache.hadoop.metrics.spi.NullContext
|
||||
rpc.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread
|
||||
rpc.period=10
|
||||
|
||||
# Configuration of the "rpc" context for file
|
||||
# rpc.class=org.apache.hadoop.hbase.metrics.file.TimeStampingFileContext
|
||||
# rpc.period=10
|
||||
# rpc.fileName=/tmp/metrics_rpc.log
|
||||
|
||||
# Configuration of the "rpc" context for ganglia
|
||||
|
|
|
@ -69,8 +69,8 @@
|
|||
<p>
|
||||
To enable JMX support in HBase, first edit
|
||||
<code>$HBASE_HOME/conf/hadoop-metrics.properties</code> to support
|
||||
metrics refreshing. (If you've already configured
|
||||
<code>hadoop-metrics.properties</code> for another output context,
|
||||
metrics refreshing. (If you've running 0.94.1 and above, or have already configured
|
||||
<code>hadoop-metrics.properties</code> for another output context,
|
||||
you can skip this step).
|
||||
</p>
|
||||
<source>
|
||||
|
|
Loading…
Reference in New Issue