-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bitnami/cassandra] Datacenter name is not configurable #4408
Comments
Hi @MikiLoz92, currently the container image is setting the datacenter name to I could verify that it is properly added to that file. Where are you checking for the datacenter name? |
Hi @marcosbc, The official Apache Cassandra driver was warning me that it couldn't connect because the datacenter name I was using did not match the one on the server. When I changed to using You can also check datacenter name with this, though:
Regards, |
Hi @MikiLoz92, you are indeed right. It seems like the datacenter property is not being configured in the proper location, as changing it has no effect on the result of that command. I've created an internal task for fixing this. Unfortunately, I cannot give an estimation for when this would be fixed, as we're a small team and christmas vacations are approaching. Note that we're open for contributions, so if you had a chance, you could look into fixing the existing logic and sending a PR, as we would be glad to review anything that helps to improve the container image and chart. |
was this ever fixed @marcosbc I am running 3.11.9-debian-10-r17 and see it and the issue is on hold |
@jtesser Unfortunately we have not had time to look into it yet. This issue is still pending to be resolved. We will add any updates once we start looking into this. In the meantime, if you happen to identify a potential fix, feel free to contribute with a PR. We'd be glad to review and help with the release. |
What if you change the snitch to GossipingPropertyFileSnitch? |
I am having the exact same issue with the chart. being new to cassandra i had no idea what was wrong. using this new knowledge i attempted to start up a fresh install with the GossipingPropertyFileSnitch setting. so even a fresh naked Cassandra install still somehow knows that it's datacenter used to be datacenter1 somehow... any suggestions for how to proceed here? |
turns out my install wasn't so fresh. i forgot to delete my PVCs in between attempts. a truely fresh install WITH GossipingPropertyFileSnitch as the snitch setting correctly sets the datacenter (and rack) of the nodes. |
Can confirm that the datacenter name can be changed with simply changing the snitch and changing the value. nodetool status shows this: nodetool status
Datacenter: dc1_k8s_play
========================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns (effective) Host ID Rack
UN 10.42.48.9 139.99 KB 256 100.0% c37fbc7b-887c-4d53-a35e-00e88e9586c7 rack1 |
I can also confirm, setting property |
Unfortunately, this issue was created a long time ago and although there is an internal task to fix it, it was not prioritized as something to address in the short/mid term. It's not a technical reason but something related to the capacity since we're a small team. Being said that, contributions via PRs are more than welcome in both repositories (containers and charts). Just in case you would like to contribute. During this time, there are several releases of this asset and it's possible the issue has gone as part of other changes. If that's not the case and you are still experiencing this issue, please feel free to reopen it and we will re-evaluate it. |
Which chart:
bitnami/cassandra v7.0.1
Describe the bug
When using the
cluster.datacenter
property as described in the documentation to configure a custom DC name, the resulting datacenter name is alwaysdatacenter1
, which also doesn't seem to agree with what's defined to be the default DC name (dc1
).To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should change de datacenter name.
Version of Helm and Kubernetes:
helm version
:kubectl version
:Additional context
The text was updated successfully, but these errors were encountered: