The Java driver only supports the Cassandra Binary Protocol and CQL3
The Java driver uses the binary protocol that was introduced in Cassandra 1.2. It only works with a version of Cassandra greater than or equal to 1.2. Furthermore, the binary protocol server is not started with the default configuration file in Cassandra 1.2. You must edit the cassandra.yaml file for each node:
Then restart the node.
As explained above the Java driver is compatible with Cassandra 1.2 or greater. Cassandra 1.2.0 can be used with this driver, but it is strongly advised to use Cassandra 1.2.4 or higher as several limitations in prepared statements such as null support have been removed in it.
The latest release of the driver is available on Maven Central. You can install it in your application using the following Maven dependency:
<dependency> <groupId>com.datastax.cassandra</groupId> <artifactId>cassandra-driver-core</artifactId> <version>1.0.0</version> </dependency>
You ought to build your project using the Mojo Versions plug-in. Add the versions:display-dependency-updates setting to your POM file, and it lets you know when the driver you are using is out of date during the build process.