Jconsole Cassandra远程连接

时间:2018-03-29 07:36:03

标签: java cassandra cassandra-3.0 jconsole

我通过jconsole连接远程cassandra集群。我在cassandra-env.sh

中设置了以下属性
JMX_PORT="7199"
JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT"
JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.authenticate=true"
JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.ssl=false"
JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=x.x.x.x"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"

我通过 jconsole -debug x.x.x.x:7199

进行调试时收到此错误
java.lang.SecurityException: Expecting a javax.rmi.ssl.SslRMIClientSocketFactory RMI client socket factory in stub!
    at javax.management.remote.rmi.RMIConnector.checkStub(RMIConnector.java:1901)
    at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:295)
    at sun.tools.jconsole.ProxyClient.tryConnect(ProxyClient.java:355)
    at sun.tools.jconsole.ProxyClient.connect(ProxyClient.java:313)
    at sun.tools.jconsole.VMPanel$2.run(VMPanel.java:294)

请有人帮我解决这个问题。

谢谢&问候
pavs

0 个答案:

没有答案