0
我嘗試通過jolokia(jolokia site)代理和hawt(hawt site)程序連接到遠程cassandra JMX,但是我不能。請指導我在jolokia和hatw程序中需要哪些配置和更改。由jolokia代理連接到遠程cassandra JMX
我嘗試通過jolokia(jolokia site)代理和hawt(hawt site)程序連接到遠程cassandra JMX,但是我不能。請指導我在jolokia和hatw程序中需要哪些配置和更改。由jolokia代理連接到遠程cassandra JMX
我打算在這裏出去走走,並建議您在cassandra配置中未啓用遠程JMX。按照datastax documentation,你應該修改cassandra-env.sh並啓用remote_jmx(設置$LOCAL_JMX = no
),並編輯這些行,以滿足您的需求:
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"
# JVM_OPTS="$JVM_OPTS -Djavax.net.ssl.keyStore=/path/to/keystore"
# JVM_OPTS="$JVM_OPTS -Djavax.net.ssl.keyStorePassword=<keystore-password>"
# JVM_OPTS="$JVM_OPTS -Djavax.net.ssl.trustStore=/path/to/truststore"
# JVM_OPTS="$JVM_OPTS -Djavax.net.ssl.trustStorePassword=<truststore-password>"
# JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.ssl.need.client.auth=true"
# JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.registry.ssl=true"
# JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.ssl.enabled.protocols=<enabled-protocols>"
# JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.ssl.enabled.cipher.suites=<enabled-cipher-suites>"
fi
你檢查防火牆的設置,也儘量設置的全過程在本地第一。然後看看你是否可以訪問你想要訪問jmx的遠程端口。在我看來,你面臨着某種網絡問題。還請提供您可能已有的任何例外和日誌。 –