HBASE-7314 Can't start REST/Thrift server if HBASE_JMX_OPTS not set
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1419955 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9f1787fe87
commit
7d7cee302a
|
@ -76,7 +76,7 @@ HBASE_REGIONSERVERS="${HBASE_REGIONSERVERS:-$HBASE_CONF_DIR/regionservers}"
|
||||||
# List of hbase secondary masters.
|
# List of hbase secondary masters.
|
||||||
HBASE_BACKUP_MASTERS="${HBASE_BACKUP_MASTERS:-$HBASE_CONF_DIR/backup-masters}"
|
HBASE_BACKUP_MASTERS="${HBASE_BACKUP_MASTERS:-$HBASE_CONF_DIR/backup-masters}"
|
||||||
# Thrift JMX opts
|
# 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"
|
HBASE_THRIFT_JMX_OPTS="$HBASE_JMX_OPTS -Dcom.sun.management.jmxremote.port=10103"
|
||||||
fi
|
fi
|
||||||
# Thrift opts
|
# Thrift opts
|
||||||
|
@ -85,7 +85,7 @@ if [ -z "$HBASE_THRIFT_OPTS" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# REST JMX opts
|
# 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"
|
HBASE_REST_JMX_OPTS="$HBASE_JMX_OPTS -Dcom.sun.management.jmxremote.port=10105"
|
||||||
fi
|
fi
|
||||||
# REST opts
|
# REST opts
|
||||||
|
|
Loading…
Reference in New Issue