Merge "Connect with remote cluster" from Yan
"Tools (like jconsole) cannot connect with remote cluster without this fix."
This commit is contained in:
commit
45e2c982f7
@ -18,6 +18,7 @@ PARAM_FILE="-cf"
|
||||
ALLOW_REMOTE="-r"
|
||||
ALLOW_DEBUG="-d"
|
||||
REMOTE=0
|
||||
HOSTNAME=`hostname`
|
||||
|
||||
print_help() {
|
||||
cat <<HLPEND
|
||||
@ -90,7 +91,7 @@ done
|
||||
|
||||
|
||||
if [ $REMOTE -eq 1 ]; then
|
||||
REMOTE="-Djavax.management.builder.initial=com.scylladb.jmx.utils.APIBuilder -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=$JMX_PORT -Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT -Dcom.sun.management.jmxremote.local.only=false"
|
||||
REMOTE="-Djavax.management.builder.initial=com.scylladb.jmx.utils.APIBuilder -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=$JMX_PORT -Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT -Dcom.sun.management.jmxremote.local.only=false -Djava.rmi.server.hostname=$HOSTNAME"
|
||||
else
|
||||
REMOTE="-Dcassandra.jmx.local.port=$JMX_PORT"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user