hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jxi...@apache.org
Subject svn commit: r1419955 - /hbase/trunk/bin/hbase-config.sh
Date Tue, 11 Dec 2012 00:57:31 GMT
Author: jxiang
Date: Tue Dec 11 00:57:31 2012
New Revision: 1419955

URL: http://svn.apache.org/viewvc?rev=1419955&view=rev
Log:
HBASE-7314 Can't start REST/Thrift server if HBASE_JMX_OPTS not set

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=1419955&r1=1419954&r2=1419955&view=diff
==============================================================================
--- hbase/trunk/bin/hbase-config.sh (original)
+++ hbase/trunk/bin/hbase-config.sh Tue Dec 11 00:57:31 2012
@@ -76,7 +76,7 @@ HBASE_REGIONSERVERS="${HBASE_REGIONSERVE
 # 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
+if [[ -n "$HBASE_JMX_OPTS" && -z "$HBASE_THRIFT_JMX_OPTS" ]]; then
   HBASE_THRIFT_JMX_OPTS="$HBASE_JMX_OPTS -Dcom.sun.management.jmxremote.port=10103"
 fi
 # Thrift opts
@@ -85,7 +85,7 @@ if [ -z "$HBASE_THRIFT_OPTS" ]; then
 fi
 
 # REST JMX opts
-if [ -z "$HBASE_REST_JMX_OPTS" ]; then
+if [[ -n "$HBASE_JMX_OPTS" && -z "$HBASE_REST_JMX_OPTS" ]]; then
   HBASE_REST_JMX_OPTS="$HBASE_JMX_OPTS -Dcom.sun.management.jmxremote.port=10105"
 fi
 # REST opts



Mime
View raw message