2 mins read
DataStax offers the JDBC driver from Magnitude (formerly Simba) to users at no cost so you should be able to use it with DBeaver.
These are the high-level steps for connecting to a Cassandra cluster with DBeaver:
- Download the Simba JDBC driver from DataStax
- Import the Simba JDBC driver
- Create a new connection to your cluster
Download the driver
- Go to https://downloads.datastax.com/#odbc-jdbc-drivers.
- Select Simba JDBC Driver for Apache Cassandra.
- Select JDBC 4.2.
- Accept the license terms (click the checkbox).
- Hit the blue Download button.
- Once the download completes, unzip the downloaded file.
Import the driver
In DBeaver, go to the Driver Manager and import the Simba JDBC driver as follows:
- Click the New button
- In the Libraries tab, click the Add File button
- Locate the directory where you unzipped the download and add the
CassandraJDBC42.jar
file. - Click the Find Class button which should identify the driver class as
com.simba.cassandra.jdbc42.Driver
. - In the Settings tab, set the following:
- Driver Name:
Cassandra
- Driver Type:
Generic
- Class Name:
com.simba.cassandra.jdbc42.Driver
- URL Template:
jdbc:cassandra://{host}[:{port}];AuthMech=1
(set authentication mechanism to 0
if your cluster doesn’t have authentication enabled) - Default Port:
9042
- Click the OK button to save the driver.
At this point, you should see Cassandra as one of the drivers in the list.
Connect to your cluster
In DBeaver, create a new database connection as follows:
- Select Cassandra from the drivers list.
- In the Main tab of the JDBC connection settings, set the following:
- Host:
node_ip_address
(this could be any node in your cluster) - Port:
9042
(or whatever you’ve set as rpc_port
in cassandra.yaml
) - Username:
your_db_username
- Password:
your_db_password
- Click on the Test Connection button to confirm that the driver configuration is working.
- Click on the Finish button to save the connection settings.