How to configure to enable jmx port in cr.yaml (exmple-cassdc-minimal.yaml). I deployed by following the below one:
https://github.com/datastax/cass-operator
I want to enable jmx port for metrics. Which port it is?
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
How to configure to enable jmx port in cr.yaml (exmple-cassdc-minimal.yaml). I deployed by following the below one:
https://github.com/datastax/cass-operator
I want to enable jmx port for metrics. Which port it is?
You are correct in that remote JMX is disabled. In K8ssandra we make some changes to the CassandraDatacenter spec to enable it. You can look here to see what we do.
We really leverage the podTemplateSpec property of CassandraDatacenter to make it all work.
I recently wrote this blob post talking briefly about the podTemplateSpec property. I hope to have a follow up post within the next few days that discusses exactly how the podTemplateSpec property is used to enable remote JMX.
Stay tuned and definitely check out http://k8ssandra.io/ :)
Is it possible to enable remote JMX in cassoperator 1.1.0? I am using below config to enable.. But still I can see that JMX is disabled. How to pass config to enable JMX?
```
jvm-options:
# Set the database to use 2 GB of Java heap
initial_heap_size: "800M"
max_heap_size: "800M"
additional-jvm-opts:
# As the database comes up for the first time, set system keyspaces to RF=3
# - "-Dcassandra.system_distributed_replication_dc_names=dc1"
# - "-Dcassandra.system_distributed_replication_per_dc=3"
jmx-remote-ssl-opts:
- "-Dcom.sun.management.jmxremote.authenticate=true"
```
The cass-operator uses the default JMX port 7199
.
As a side note, I wanted to bring K8ssandra to your attention in case you didn't know about it yet. It still uses the cass-operator under the hood but is packaged with the following:
Cheers!
Thanks Erick Ramirez . My doubt was do we need to enable that jmx port or by default, it exposes jmx port 7199
I checked that jmx remote port is set to false. I was trying to pass the below config in cassandra_cr.yaml:
```
jvm-options:
# Set the database to use 2 GB of Java heap
initial_heap_size: "800M"
max_heap_size: "800M"
- "-Dcom.sun.management.jmxremote.authenticate=true"
```
Is that correct config or need to change configurations?
6 People are following this question.
DSE includes a version of Jackson-databind package identified as vulnerable to RCE in CVE-2020-8840
When is the Kubernetes operator available for DSE Graph, Analytics and Search?
Cassandra pod is failing with liveness and readiness
Is it possible to scale down a cluster with cass-operator on Kubernetes?
Does the cass-operator support cluster shutdown and startup?
DataStax Enterprise is powered by the best distribution of Apache Cassandra ™
© 2021 DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.
Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.
Privacy Policy Terms of Use