O'Reilly logo

Practical Cassandra: A Developer’s Approach by Eric Lubow, Russell Bradberry

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

9. Drivers and Sample Code

In this chapter we will go over some of the clients for the most popular languages. Using the most recent driver for each of the languages we will outline how to connect to a Cassandra cluster, initiate a session, execute CQL queries, and close the connection to the cluster.

There are currently quite a few drivers for Cassandra, table 9.1 has a breakdown of the most popular currently maintained drivers, their support of CQL, CBP(CQL Binary Protocol), Thrift and where to get them.

Table 9.1. Various Clients

Image

Clients that currently support the CQL3 Binary Protocol also support automatic node failure detection, as well as ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required