Melbin Mathai
Melbin Mathai

Reputation: 507

How to connect Cassandra Database to Eclipse

I am trying to connect my Cassandra database to Eclipse. I was created a table in Cassandra using Terminal. Now I want to get that table contents to the Eclipse console terminal. How to connect my Cassandra database to Eclipse. I am using the Ubuntu system. Please help me.

Upvotes: 1

Views: 3385

Answers (1)

Shashi Pandey
Shashi Pandey

Reputation: 47

You can go with setup using following steps:

First go to market place and add DBeaver Plugin in you Eclipse

Now Connect your cassandra Database: Create a JDBC Data Source for Cassandra Data

Follow the steps below to load the driver JAR in DBeaver.

Setup Driver Manager:

  1. Open the DBeaver application and, in the Databases menu, select the Driver Manager option. Click New to open the Create New Driver form.
  2. In the Driver Name box, give your Database name or any preffered name.
  3. Download cassandra-jdbc jar
  4. To add Driver jar, click Add File.and path to cassandra-jdbc jar
  5. Click the Find Class button and select the CassandraDriver class from the results. This will automatically fill the Class Name field at the top of the form.
  6. Add jdbc:cassandra: in the URL Template field.

Create New Connection

1.Click new Connection link and select recently created cassandra driver among the available drivers.

2.Provide JDBC url,username and password.

3.Click test connection

For Detailed Reference https://www.cdata.com/kb/tech/cassandra-jdbc-dbvr.rst

Best of Luck!!!!

Upvotes: 2

Related Questions