question

KRISHNAVENI avatar image
KRISHNAVENI asked Erick Ramirez edited

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

java driver
10 |1000

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

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