hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nspiegelb...@apache.org
Subject svn commit: r1176148 - /hbase/branches/0.89/bin/hbase-config.sh
Date Tue, 27 Sep 2011 01:07:24 GMT
Author: nspiegelberg
Date: Tue Sep 27 01:07:24 2011
New Revision: 1176148

URL: http://svn.apache.org/viewvc?rev=1176148&view=rev
Log:
HBASE: Add JMX/YouKit config options

Summary:
Adds config options back into bin/hbase-config.sh .  These options are
currently commented out in conf/hbase-env.sh

Test Plan:
mvn -Dskiptests install; ./bin/start-hbase.sh

DiffCamp Revision: 117518
Reviewed By: kannan
CC: nspiegelberg, kannan
Tasks:
#213939: verify your commits in trunk

Revert Plan:
OK

Modified:
    hbase/branches/0.89/bin/hbase-config.sh

Modified: hbase/branches/0.89/bin/hbase-config.sh
URL: http://svn.apache.org/viewvc/hbase/branches/0.89/bin/hbase-config.sh?rev=1176148&r1=1176147&r2=1176148&view=diff
==============================================================================
--- hbase/branches/0.89/bin/hbase-config.sh (original)
+++ hbase/branches/0.89/bin/hbase-config.sh Tue Sep 27 01:07:24 2011
@@ -108,3 +108,28 @@ EOF
     exit 1
   fi
 fi
+
+HBASE_JMX_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false"
+HBASE_JMX_OPTS="$HBASE_JMX_OPTS -Dcom.sun.management.jmxremote.authenticate=false"
+# HBASE_JMX_OPTS="$HBASE_JMX_OPTS -Dcom.sun.management.jmxremote.password.file=$HBASE_HOME/conf/jmxremote.passwd"
+# HBASE_JMX_OPTS="$HBASE_JMX_OPTS -Dcom.sun.management.jmxremote.access.file=$HBASE_HOME/conf/jmxremote.access"
+HBASE_MASTER_JMX_OPTS="$HBASE_JMX_OPTS -Dcom.sun.management.jmxremote.port=8090"
+HBASE_REGIONSERVER_JMX_OPTS="$HBASE_JMX_OPTS -Dcom.sun.management.jmxremote.port=8091"
+
+# YourKit Java Profiling
+# Note that you need to have yjpagent.so & yjp.jar on your computer and have
+# LD_LIBRARY_PATH entry to their dir location. for example:
+# export LD_LIBRARY_PATH=/usr/local/hadoop/:$LD_LIBRARY_PATH
+HBASE_YOURKIT_PROFILE="-agentlib:yjpagent"
+
+# Java debugging options.
+# By default, local hbase instances are setup with the remote debugging
+# enabled for the HMaster (which also functions as regionserver) on port 1044
+# Zookeeper debug is configured on port 1045
+HBASE_MASTER_DBG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8070
$HBASE_GC_OPTIONS"
+HBASE_REGIONSERVER_DBG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8071
$HBASE_GC_OPTIONS"
+HBASE_ZOOKEEPER_DBG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8072"
+
+export HBASE_MASTER_OPTS="$HBASE_MASTER_DBG_OPTS $HBASE_MASTER_JMX_OPTS"
+export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_DBG_OPTS $HBASE_REGIONSERVER_JMX_OPTS"
+export HBASE_ZOOKEEPER_OPTS="$HBASE_ZOOKEEPER_DBG_OPTS"



Mime
View raw message