Skip to content
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

Local Datacenter "datacenter1" is hardcoded in migrator's Cassandra JDBC driver #1062

Closed
alniks opened this issue Dec 23, 2020 · 6 comments
Closed

Comments

@alniks
Copy link

alniks commented Dec 23, 2020

Generally this should be read from application.conf file:

basic.load-balancing-policy { local-datacenter = "datacenter" }

Hardcoded datacenter overrides information from the .conf file

@ipolevoy
Copy link
Member

Note that this Cassandra documentation page: https://docs.datastax.com/en/cql-oss/3.3/cql/cql_reference/cqlCreateKeyspace.html states this:

 Note: datacenter1 is the default data center name

So, the correct default configuration is:

basic.load-balancing-policy { local-datacenter = "datacenter1" }

seems like a magic word!

ipolevoy added a commit that referenced this issue Dec 24, 2020
ipolevoy added a commit that referenced this issue Dec 24, 2020
#1062 - Local Datacenter "datacenter1" is hardcoded in migrator's Cas…
@ipolevoy
Copy link
Member

TODO: cherry-pick to master after this is complete: #1061

@ipolevoy
Copy link
Member

@alniks the Java8 snapshot has been deployed

@alniks
Copy link
Author

alniks commented Dec 29, 2020

We are still getting errors due to "datacenter1":

Ignoring Node(endPoint=/3.12.23.142:9142, hostId=7720e017-7d14-376c-ae10-ed5619833d3b, hashCode=63be9de2) because it doesn't belong to the local DC datacenter1

Though our .conf file contains:

basic.load-balancing-policy { local-datacenter = "us-east-2" }

@alniks
Copy link
Author

alniks commented Dec 29, 2020

@ipolevoy
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants