You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by li...@apache.org on 2013/11/15 20:18:23 UTC

svn commit: r1542373 - /hbase/branches/0.89-fb/conf/hadoop-metrics.properties

Author: liyin
Date: Fri Nov 15 19:18:22 2013
New Revision: 1542373

URL: http://svn.apache.org/r1542373
Log:
[HBASE-9972] Make HBase export metrics to JMX by default, instead of to NullContext

Author: gauravm

Summary:
I was debugging the metrics issue in the swift branch, and found that HBase doesn't export to JMX by default. The JMX server is being spun-up anyways in single node setup, we might as well export the metrics to it.

Copied the hadoop-metrics.properties file from titan shadow 25.

Test Plan: Tested it by spinning up the cluster, and verifying that the metrics show up on JConsole

Reviewers: adela, manukranthk, fan, aaiyer

Reviewed By: adela

CC: hbase-eng@

Differential Revision: https://phabricator.fb.com/D1057243

Task ID: 3193706

Modified:
    hbase/branches/0.89-fb/conf/hadoop-metrics.properties

Modified: hbase/branches/0.89-fb/conf/hadoop-metrics.properties
URL: http://svn.apache.org/viewvc/hbase/branches/0.89-fb/conf/hadoop-metrics.properties?rev=1542373&r1=1542372&r2=1542373&view=diff
==============================================================================
--- hbase/branches/0.89-fb/conf/hadoop-metrics.properties (original)
+++ hbase/branches/0.89-fb/conf/hadoop-metrics.properties Fri Nov 15 19:18:22 2013
@@ -9,16 +9,21 @@
 # See also http://hadoop.apache.org/hbase/docs/current/metrics.html
 
 # Configuration of the "hbase" context for null
-hbase.class=org.apache.hadoop.metrics.spi.NullContext
+# hbase.class=org.apache.hadoop.metrics.spi.NullContext
 
 # 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
 
+# Configuration of the "hbase" context for JMX
+hbase.class=org.apache.hadoop.metrics.jmx.JMXContext
+hbase.extendedperiod=3600
+hbase.period=60
+
 # HBase-specific configuration to reset long-running stats (e.g. compactions)
 # If this variable is left out, then the default is no expiration.
-hbase.extendedperiod = 3600
+# hbase.extendedperiod = 3600
 
 # Configuration of the "hbase" context for ganglia
 # Pick one: Ganglia 3.0 (former) or Ganglia 3.1 (latter)
@@ -27,8 +32,9 @@ hbase.extendedperiod = 3600
 # hbase.period=10
 # 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.NullContext
 
 # Configuration of the "jvm" context for file
 # jvm.class=org.apache.hadoop.hbase.metrics.file.TimeStampingFileContext
@@ -42,8 +48,12 @@ jvm.class=org.apache.hadoop.metrics.spi.
 # jvm.period=10
 # jvm.servers=GMETADHOST_IP:8649
 
+# Configuration of the "jvm" context for jmx
+jvm.class=org.apache.hadoop.metrics.jmx.JMXContext
+jvm.period=60
+
 # Configuration of the "rpc" context for null
-rpc.class=org.apache.hadoop.metrics.spi.NullContext
+# rpc.class=org.apache.hadoop.metrics.spi.NullContext
 
 # Configuration of the "rpc" context for file
 # rpc.class=org.apache.hadoop.hbase.metrics.file.TimeStampingFileContext
@@ -56,3 +66,14 @@ rpc.class=org.apache.hadoop.metrics.spi.
 # rpc.class=org.apache.hadoop.metrics.ganglia.GangliaContext31
 # rpc.period=10
 # rpc.servers=GMETADHOST_IP:8649
+
+# Configuration of the "rpc" context for jmx
+rpc.class=org.apache.hadoop.metrics.jmx.JMXContext
+rpc.period=10
+
+# Configuration of the "thriftserver" context for jmx
+thriftserver.class=org.apache.hadoop.metrics.jmx.JMXContext
+thriftserver.period=60
+
+# Configuration of the "hdfsclient" context for jmx
+hdfsclient.class=org.apache.hadoop.metrics.jmx.JMXContext