
Adding Cassandra JDBC Driver to DBeaver Community Edition
We all use different editors to use SQL. If you are experiencing a shortage of free editors for Cassandra CQL, you are at the right place. My editor of choice is DBeaver Community Edition. In this edition, MySQL, PostgreSQL, Hive, Spark Thrift, SQLlite, Oracle, and many other database drivers are available. But if you want to use Cassandra and CQL, unfortunately, this is not available. If you don’t want to install a different editor/studio just for Cassandra, I have good news for you. We can add Cassandra JDBC driver to DBeaver Community Edition. In this post, we’ll see how that happens.
Download JDBC Driver Jar
For this, we will use Simba JDBC driver developed by DataStax [1].

Let’s go to the Downloads folder and unzip the jar file (Figure-2).

Importing JDBC Driver in DBeaver
Run DBeaver. Open Driver Manager from the Database menu (Figure-3).

When you click on Driver Manager above, click the New button in the window that opens, and a new driver definition window will open (Figure-4). Fill in the boxes in this window as in Figure-4.
- Driver Name:
Cassandra
- Driver Type:
Generic
- Class Name:
com.simba.cassandra.jdbc42.Driver
- URL Template:
jdbc:cassandra://{host}[:{port}];AuthMech=0
(set authentication mechanism to1
if your cluster has authentication enabled) - Default Port:
9042

You can see the Libraries tab in Figure-4, when we click on it, the window where we can add the driver jar file (Figure-5) will appear. Select Add File(2) -> CassandraJDBC42.jar(3) and click the Open (4) button.

After completing the above process (Figure-5) and pressing the Ok (4) button, you will see that Cassandra has been added as follows.

Creating a Cassandra Connection
Now we can create a connection for Cassandra just as we would any database. As we can see in Figure-7, first creating a new connection (1) and then searching for Cassandra in the search box (2) will bring up the Cassandra we defined just above.

When the Cassandra database in Figure-7 is selected, the window in Figure-8 will open for connection details.

When we click the Test Connection button, if there is a Cassandra listening on 127.0.0.1:9042, we will see that the connection is successful as follows in Figure-9.

Running a Cassandra CQL Query
Now we can open a SQL editor page and write CQL commands.

Let’s start with creating a keyspace

As we can see in Figure-11, we tested it to work successfully.
That’s all in this summer, I wish you pleasant inquiries on Cassandra.