cassandra - jmx is not enabled to receive remote connections -
i not sure why 7199 listening on 127.0.0.1,how can make 7199 listen hostip address.
my cassandra-env.sh config below jvm
jmx_port="7199"
jvm_opts="$jvm_opts -djava.net.preferipv4stack=true"
jvm_opts="$jvm_opts -djava.rmi.server.hostname=192.68.0.45" local_jmx=no
if [ "$local_jmx" = "yes" ]; then
jvm_opts="$jvm_opts -dcassandra.jmx.local.port=$jmx_port -xx:+disableexplicitgc"
else jvm_opts="$jvm_opts -dcom.sun.management.jmxremote.port=$jmx_port"
jvm_opts="$jvm_opts -dcom.sun.management.jmxremote.rmi.port=$jmx_port"
jvm_opts="$jvm_opts -dcom.sun.management.jmxremote.ssl=false"
jvm_opts="$jvm_opts -dcom.sun.management.jmxremote.authenticate=true"
jvm_opts="$jvm_opts -dcom.sun.management.jmxremote.password.file=/etc/cassandra/jmxremote.password"
i have been fighting issue too. been not easy shown on tutorials.
i solved issue this:
- add environment variable local_jmx .bashrc file:
#set local_jmx export local_jmx=no
- at cassandra-env.sh disable password authentication (test environmnent!!):
jvm_opts="$jvm_opts -dcom.sun.management.jmxremote.authenticate=false" # jvm_opts="$jvm_opts -dcom.sun.management.jmxremote.password.file=/etc/cassandra/jmxremote.password"
- restart each node(s)
Comments
Post a Comment