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

KRISHNAVENI avatar image
KRISHNAVENI asked alexandre.dutra answered

Upgrade from com.datastax.cassandra:cassandra-driver-core 3.6.0 to com.datastax.oss:java-driver-core 4.6.1

in 3.6.0 we are using

withLoadBalancingPolicy(DCAwareRoundRobinPolicy.builder().withLocalDc("localdc")

.withUsedHostsPerRemoteDc(2).allowRemoteDCsForLocalConsistencyLevel().build());

Please help me to configure the same in 4.6.1

upgrade
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

alexandre.dutra avatar image
alexandre.dutra answered

You need driver 4.10 or higher (4.11 is currently the latest).

See the manual to understand how to configure your DC failover.

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.