如何在Elassandra中启用远程JMX连接? [英] How to enable remote JMX connections in Elassandra?

查看:131
本文介绍了如何在Elassandra中启用远程JMX连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过cassandra-evn.sh文件在 Elassandra 5.5.0.4 中启用 JMX ,以便远程连接 Cassandra节点,并获取指标和统计信息. 我正在尝试使用 JConsole 连接到JMX. 我已经遵循了datastax和博客中的各种教程,但都没有成功.

I'm trying to enable JMX in Elassandra 5.5.0.4 through cassandra-evn.sh file in order to connect to a Cassandra node, remotely, and get metrics and statistics. I'm trying to connect to JMX using JConsole. I have followed various tutorial from datastax and blogs without success.

我尝试了有无身份验证,但是没有用.

I tried with and without authentication but nothing worked.

推荐答案

确保设置以下参数.该配置无需任何身份验证即可远程启用JMX指标.

Make sure the below parameters are set. The configuration enables JMX metrics remotely without any authentication.

# add this if you're having trouble connecting:
JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=<public ip>"

LOCAL_JMX=no
JMX_PORT="7199"

JVM_OPTS="$JVM_OPTS -Dcassandra.jmx.remote.port=$JMX_PORT"
JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT"
JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.authenticate=false"

这篇关于如何在Elassandra中启用远程JMX连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆