AnsweredAssumed Answered

I am unable to connect to Cassandra Database.

Question asked by AjayBongane on Oct 11, 2016
Latest reply on May 9, 2017 by Rajesh Kumar Singh

I am unable to connect to Cassandra Database. I am getting below exception when tried with below driver & connection string

org.apache.cassandra.cql.jdbc.CassandraDriver

jdbc:cassandra://<IP>:<Port>/<keyspace>

Exception: There was a SQLException: java.sql.SQLNonTransientConnectionException: org.apache.thrift.transport.TTransportException

Stack Trace: java.sql.SQLNonTransientConnectionException: org.apache.thrift.transport.TTransportException at org.apache.cassandra.cql.jdbc.CassandraConnection.(CassandraConnection.java:159) at org.apache.cassandra.cql.jdbc.CassandraDriver.connect(CassandraDriver.java:92) at com.itko.lisa.jdbc.JDBCNode.getConnection(JDBCNode.java:627) at com.itko.lisa.jdbc.JDBCNode.executeSQL(JDBCNode.java:370) at com.itko.lisa.jdbc.JDBCNodeEditor.doExec(JDBCNodeEditor.java:483) at com.itko.lisa.jdbc.JDBCNodeEditor$6.doCallback(JDBCNodeEditor.java:417) at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.thrift.transport.TTransportException at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132) at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86) at org.apache.thrift.transport.TFramedTransport.readFrame(TFramedTransport.java:129) at org.apache.thrift.transport.TFramedTransport.read(TFramedTransport.java:101) at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86) at org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:429) at org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:318) at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:219) at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:77) at org.apache.cassandra.thrift.Cassandra$Client.recv_describe_cluster_name(Cassandra.java:1247) at org.apache.cassandra.thrift.Cassandra$Client.describe_cluster_name(Cassandra.java:1235) at org.apache.cassandra.cql.jdbc.CassandraConnection.(CassandraConnection.java:130) ... 7 more

Outcomes