Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

a.gheshlaghy_177282 avatar image
a.gheshlaghy_177282 asked ·

How do I configure remote JMX connections in LCM?

hi,

i ran into below issue:
https://docs.datastax.com/en/dse-trblshoot/doc/troubleshooting/connectionsFail.html
fixed it with given solution, but what i found it whenever i configure nodes in LCM, LCM will delete entry that i used for resolving JMX issue and it does not preserve it plus there is no entry in Config profile for adding :

JVM_OPTS = "$JVM_OPTS -Djava.rmi.server.hostname=public name"


lifecycle manager
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

In order to allow remote JMX connections on a cluster managed by LCM, you will need to edit the managed cluster's configuration profile under the JVM options section.

You will need to scroll down to the JMX pane and select the relevant jmx-connection-type. For details, see Configuring a JMX Connection to DSE using LCM.

As a side note, you stated that you "fixed [the issue] with the solution" in the Troubleshooting section of the DataStax Docs. I wanted to point out that remote JMX connections are not enabled by default. It is not "broken" since it is done for security reasons by design. Cheers!

4 comments Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

i did according to the doc you linked. enabled Remote-JMX - DSE Unified Authentication.
now below command works if it runs locally(in this case 10.10.10.10):
nodetool -u admin -pw admin -h 10.10.10.10 status
but it won't work remotely.
I fixed the issue as per :
https://docs.datastax.com/en/dse-trblshoot/doc/troubleshooting/connectionsFail.html
but what happens now is if i want to run a configuration job in LCM, it will delete the line i added in cassandra-env.sh file.

0 Likes 0 · ·
Erick Ramirez avatar image Erick Ramirez ♦♦ a.gheshlaghy_177282 ·

Could you confirm that you ran a "configure" job in LCM after you enabled remote JMX connections? If you did and it's still not working, please log a case with DataStax Support so one of our engineers can assist you directly. Cheers!

1 Like 1 · ·
a.gheshlaghy_177282 avatar image a.gheshlaghy_177282 Erick Ramirez ♦♦ ·

yes i did,thanks for hint

0 Likes 0 · ·
Show more comments