Reputation: 8978
Has anyone had any success with connecting to a Cassandra cluster using DBeaver Community Edition? I've tried to follow this post, but haven't had any success. I have to have authentication enabled, and I get an error saying:
Authentication error on host /x.x.x.x:9042: Host /x.x.x.x:9042 requires authentication, but no authenticator found in Cluster configuration
Upvotes: 13
Views: 30267
Reputation: 16353
The Simba JDBC driver from Magnitude is no longer available for free. It is no longer downloadable from the DataStax website so the instructions in this post is obsolete.
The alternative option is to use ING Bank's open-source JDBC wrapper and I have documented the steps for using it with DBeaver Community Edition on DBA Stack Exchange (post #340409).
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:
In DBeaver, go to the Driver Manager and import the Simba JDBC driver as follows:
CassandraJDBC42.jar
file.com.simba.cassandra.jdbc42.Driver
.Cassandra
Generic
com.simba.cassandra.jdbc42.Driver
jdbc:cassandra://{host}[:{port}];AuthMech=1
(set authentication mechanism to 0
if your cluster doesn't have authentication enabled)9042
At this point, you should see Cassandra as one of the drivers in the list.
In DBeaver, create a new database connection as follows:
node_ip_address
(this could be any node in your cluster)9042
(or whatever you've set as rpc_port
in cassandra.yaml
)your_db_username
your_db_password
At this point, you should be able to browse the keyspaces and tables in your Cassandra cluster. Cheers!
👉 Please support the Apache Cassandra community by hovering over cassandra then click on the Watch tag
button. 🙏 Thanks!
Upvotes: 54
Reputation: 446
The answer by Erick Ramirez works well, with a few modifications as of 5th June 2024.
That's it. Tested with DBeaver community version 24.1.0
.
Upvotes: 2