We are trying to upgrade DSE from 4.6 to 4.8.11 but we are facing version not supportable issue when connecting with client driver version 2.1.6. upgrade is happening in rolling fashion and we are getting com.datastax.driver.core.UnsupportedProtocolVersionException. After triaging, it looks like we need to specify protocol version to be used. Currently we connect to Cassandra using spring data Cassandra jar (1.3.2.RELEASE) but looks like XML config doesn't have option to set protocol version. Any help ?
This is what we want to achieve:
Cluster cluster = Cluster.builder().addContactPoint("x.x.x.x").withProtocolVersion(ProtocolVersion.V2).build();