connect with remote cluster
This commit is contained in:
parent
c07f5c034f
commit
82ae18605a
@ -18,6 +18,7 @@ PARAM_FILE="-cf"
|
|||||||
ALLOW_REMOTE="-r"
|
ALLOW_REMOTE="-r"
|
||||||
ALLOW_DEBUG="-d"
|
ALLOW_DEBUG="-d"
|
||||||
REMOTE=0
|
REMOTE=0
|
||||||
|
HOSTNAME=`hostname`
|
||||||
|
|
||||||
print_help() {
|
print_help() {
|
||||||
cat <<HLPEND
|
cat <<HLPEND
|
||||||
@ -90,7 +91,7 @@ done
|
|||||||
|
|
||||||
|
|
||||||
if [ $REMOTE -eq 1 ]; then
|
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
|
else
|
||||||
REMOTE="-Dcassandra.jmx.local.port=$JMX_PORT"
|
REMOTE="-Dcassandra.jmx.local.port=$JMX_PORT"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user