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.
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:
Open the DBeaver application and, in the Databases menu, select the Driver Manager option. Click New to open the Create New Driver form.
In the Driver Name box, give your Database name or any preffered name.
Download cassandra-jdbc jar
To add Driver jar, click Add File.and path to cassandra-jdbc jar
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.
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!!!!
Related
I've installed Talend ESB 6.5.1 and am trying to connect to a SQL Server database.
I tried using the JTDS driver, but that didn't work, and it appeared that I needed a DLL that wasn't included in the , and do I installed the pure java MS driver instead.
Talend has put the MS driver into Studio\workspace\xxx\temp\dbWizard having renamed it, but when I try to use it I get
Database connection is failed.
java.lang.RuntimeException: java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
at org.talend.core.model.metadata.builder.database.JDBCDriverLoader.getConnection(JDBCDriverLoader.java:195)
...
It looks like Talend has put the jdbc driver somewhere, but it not referencing it correctly.
Any ideas what I need to do to get Talend to find it? (I've looked inside the .jar file and the class is definitely there.)
(Taking the generated JDBC URL and using this directly in a tJDBCInput with the driver jar selected works fine... bizarre)
The location where your jar was put does not look familiar. Try deleting all the jtds jar versions in the following locations :
<Talend root folder>\configuration\.m2\repository\org\talend\libraries
<Talend root folder>\lib\java
And restart your studio. When you go back to your component, you'll see an install button. You should be able to download and install the jar.
I'm using DBeaver 3.8.0 and trying to setup general connection to my local PostgreSQL database.
To view all the databases i have, I check the "Show non-default databases" checkbox. And when I try to access Schemas of one of my databases - I'm getting the error
org.jkiss.dbeaver.DBException: Can't access non-default database
Try to set your database active which you choose to open the schema:
Right-click on the Db Connection in the database navigator (right-click on PostgreSQL)
Click on edit connection
Select PostgreSQL tab
Select Show all databases
Click ok to save
Note: I am using DBeaver Enterprise 7.0.0
For more recent versions of DBeaver, you can improve this confusing default behavior.
You need to change an "Editors" setting. There are several ways to get to the setting, an easy way is:
[Postgres - #name#] right-click > Properties
Under Editors, check the auto-sync box:
After that, any time you click on a database in the right-hand navigator, it will automatically be set as the active database, so things should just work.
These types of pain points are enough to drive you away from new tools, this one in particular. Hang in there!
I am new to Phoenix I have connected my Apache Phoenix to HBase and it all going well trough terminal but i need to perform some operation of java on table so can you help me to fix how can i connect my phoenix to eclipse IDE so that i can perform operation from phoenix to HBase table and update that table in HBase.Please help me to do that
This is how I set it up using Eclipse Data Tools.
Install Eclipse Data Tools
Create generic_JDBC_1.x driver in:
In windows/perferences/DataManagement/Connectivity/Driver Definition:
Select Add
In Jar list, point to phoenix-version-client.jar
Next, in the properties tab, select the URL for the connection. The format is:
jdbc:phoenix:zookeepers:/hbase-unsecure
The Zookeeper node in my case is /hbase-unsecure because I have set it up in Ambari and that is the default. It could be only /hbase in your setup. This is set in hbase-site.xml.
For driver class, I selected org.apache.phoenix.jdb.PhoenixDriver
Next step, open Data Source Explorer view and connect to your database.
Now, when you open a SQL file, specify your connection details, i.e., Generic JDBC_1.x, Name, database
To run your SQL script, simply right click in the editor and select Execute current text.
Behdad
ExaPackets LLC
Right now I have an oracle 12c. To connect with the database I need to use the ojdbc7.jar driver.
My own apps connect without problem with this, but I can't make SQL Explorer to work because I always get the "Not matching protocol" error. This is because is preloading the wrong JDBC driver. Now, I made a search in the Eclipse directory and I found this file:
.\configuration\org.eclipse.osgi\927\0.cp\lib\ojdbc14.jar
This is the wrong driver, and SQL Explorer alway use this despite I configure the right one in the settings. I've tried deleting this but every time I launch eclipse this jar appears again.
Now, to "fix" this, I put the correct driver, and renamed it with "ojdbc14.jar". Right now is working but I just want to disable this because sometimes I need to connect to oracle 11g and I need to change all over again.
What pluggin is preloading this?
Thanks!
I was following the following instructions:
http://www.eclipse.org/articles/article.php?file=Article-EclipseDbWebapps/index.html
in order to set-up a derby database server and everything works fine. I created the DB and could easily access it. however, these instructions use JSP to access my DB and I wand to change it so that I can access the DB through my custom Java classes but I cant create any connections to the DB. I simply tried:
Connection con = DriverManager.getConnection
("jdbc:derby://localhost:1527/features", "root", "root");
Note: here my DB is names features
I get the error:
java.sql.SQLException:
No suitable driver found for jdbc:derby://localhost:1527/features
I tried loading the class for the driver:
Class.forName("org.apache.derby.jdbc.ClientDriver");
I get the error:
java.lang.ClassNotFoundException:
org.apache.derby.jdbc.ClientDriver
I dont know where to find and put org.apache.derby.jdbc.ClientDriver. How come in the instructions they only add a context.xml under META_INF and everything work? What am I missing?
Did you:
Copy the file derbyclient.jar from that folder to your TOMCAT_ROOT/lib
folder (if you're using Tomcat 5.x, install into
TOMCAT_ROOT/common/lib). This installs the Derby JDBC driver into
Tomcat for use in a DataSource.
You need the derbyclient.jar in the classpath.