You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2012/05/01 00:26:32 UTC

svn commit: r1332450 - /hbase/trunk/bin/hbase-config.sh

Author: stack
Date: Mon Apr 30 22:26:31 2012
New Revision: 1332450

URL: http://svn.apache.org/viewvc?rev=1332450&view=rev
Log:
HBASE-5879 Enable JMX metrics collection for the Thrift proxy

Modified:
    hbase/trunk/bin/hbase-config.sh

Modified: hbase/trunk/bin/hbase-config.sh
URL: http://svn.apache.org/viewvc/hbase/trunk/bin/hbase-config.sh?rev=1332450&r1=1332449&r2=1332450&view=diff
==============================================================================
--- hbase/trunk/bin/hbase-config.sh (original)
+++ hbase/trunk/bin/hbase-config.sh Mon Apr 30 22:26:31 2012
@@ -75,6 +75,14 @@ HBASE_CONF_DIR="${HBASE_CONF_DIR:-$HBASE
 HBASE_REGIONSERVERS="${HBASE_REGIONSERVERS:-$HBASE_CONF_DIR/regionservers}"
 # List of hbase secondary masters.
 HBASE_BACKUP_MASTERS="${HBASE_BACKUP_MASTERS:-$HBASE_CONF_DIR/backup-masters}"
+# Thrift jmx opts
+if [ -z "$HBASE_THRIFT_JMX_OPTS" ]; then
+  HBASE_THRIFT_JMX_OPTS="$HBASE_JMX_OPTS -Dcom.sun.management.jmxremote.port=8093"
+fi
+# Thrift opts
+if [ -z "$HBASE_THRIFT_OPTS" ]; then
+  export HBASE_THRIFT_OPTS="$HBASE_THRIFT_JMX_OPTS"
+fi
 
 # Source the hbase-env.sh.  Will have JAVA_HOME defined.
 if [ -f "${HBASE_CONF_DIR}/hbase-env.sh" ]; then