DBeaver
Cassandra
Database Configuration
Data Management
SQL Tools

How to connect DBeaver to Cassandra (JDBC driver setup)

Codemia Knowledge Hub ·

Register a Cassandra JDBC driver in DBeaver's Driver Manager, then create a new database connection that points at a Cassandra node (default port 9042) with your credentials. After that you can browse keyspaces and run CQL from DBeaver.

Prerequisites

  1. DBeaver installed. Download it from the DBeaver official website.
  2. Apache Cassandra set up and running. See the Apache Cassandra documentation to install it.
  3. Java Development Kit (JDK) 1.8 or higher, since both Cassandra and DBeaver require it.

Step 1: Install the Cassandra JDBC driver

  1. Open DBeaver and go to the Database menu.
  2. Click Driver Manager.
  3. If no Cassandra driver is listed, click New.
  4. Enter:
    • Driver Name: Cassandra
    • Class Name: com.simba.cassandra.jdbc42.Driver (adjust based on the driver version)
    • URL Template: jdbc:cassandra://<host>:<port> (replace <host> and <port> with your Cassandra host and port)
  5. Click Libraries and add the JAR file(s) for the Cassandra JDBC driver.
    • You can download the driver from vendor sites or repositories like Maven Central.
  6. Click OK.

Step 2: Create a new connection

  1. Open the Database menu.
  2. Select New Database Connection.
  3. Choose Cassandra from the list.
  4. Enter the connection details:
    • Host: IP address or hostname of your Cassandra node.
    • Port: Cassandra's default port is 9042.
    • Username/Password: credentials that match your Cassandra setup.
  5. Click Test Connection, and if it succeeds, click Finish to save the connection.

Step 3: Work with Cassandra in DBeaver

  • Browse keyspaces: keyspaces are Cassandra's top-level elements, like databases in SQL systems. You can view, create or delete them.
  • Work with tables: run queries, inserts, updates and deletes through query panels or visual editors.
  • Run CQL: use the SQL console for Cassandra Query Language (CQL) commands, complex operations or batch scripts.

If the connection fails

  • Compatibility: the Cassandra version, the JDBC driver and DBeaver must be compatible with each other.
  • Security: a secured cluster may need extra configuration such as SSL/TLS options, authentication and proprietary protocols.
  • Network access: the machine running DBeaver must be able to reach the Cassandra instance through firewalls and network policies.
Key AreaDescription
JDBC DriverDriver is essential for connection. Provide correct JAR file.
Connection DetailsRequires host and port. Default port is 9042.
AuthenticationProvide valid credentials. Often uses simple authentication.
NetworkingEnsure network access is not blocked by firewalls.
Technical CompatibilityCheck version compatibility among DBeaver, Cassandra, and the JDBC driver.
Advanced SecurityMay require SSL/TLS and secure authentication configurations.

Course
Beginner
27 lessons
10 hours
System Design Fundamentals

Build a strong foundation in designing scalable, reliable distributed systems.

View the course
System Design practice on Codemia

Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.

Practice system design