Skip to content

Upgrade to Cassandra driver 4 #18621

@mp911de

Description

@mp911de

The Cassandra 4 driver comes with several changes (in comparison to the 3.x driver). An upgrade requires some coordination as the 4.0 driver comes with:

  • An entirely new package structure (Old: com.datastax.driver, new: com.datastax.oss.driver.api) and new maven coordinates (com.datastax.cassandra:cassandra-driver-core vs. new com.datastax.oss:java-driver-core)
  • Changed concepts (new driver drops the intermediate Cluster concept in favor of a single CqlSession entry point)
  • Several changes to configuration properties

Special attention deserves DriverConfigLoader that is a configuration utility to load driver config from a .conf/.json/.properties file and the fact that although Guava is no longer required as a dependency, the driver still uses a shaded variant of Guava.

It looks as if both drivers could be used side by side until Spring Data for Apache Cassandra and Zipkin are able to catch up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions