Cannot connect to cluster with cqlsh using secure connect bundle - cassandra

I am getting error when I try to datastax cassandra instance.
bin/cqlsh -u admin -p PASSWORD -b BUNDLE_ZIP_PATH
Connection error: ('Unable to connect to any servers', \
{'xxx:xxx:xxx': ValueError('No host_id to create the SniEndPoint',)} \
)
Have anyone seen this error? This is a to a cloud managed datastax instance on IBM Cloud and the connection used to work before.

The error is generated by the embedded Python driver that cqlsh uses to connect to clusters. It indicates that it couldn't get the host from the secure bundle.
The most likely cause is that the secure bundle you're using is corrupted so I'd suggest downloading it from the source again. Cheers!

Related

How do I setup Cassandra on Ubuntu 20.04?

Hi Im new on cassandra and I running ubuntu OS. How do I set up cassandra in ubuntu 20?. Why Im I getting so many errors? This is the last one I come across, I have tried everything
cassandra
.....
ERROR org.apache.cassandra.db.Directories - Doesn't have write permissions for /var/lib/cassandra/data directory
before that one I got this one
cqlsh
Connection error: ('Unable to connect to any servers', {'127.0.0.1': error(111, "Tried connecting to [('127.0.0.1', 9042)]. Last error: Connection refused")})
The error indicates that the default cassandra user does not have permissions on the data directory.
Ordinarily for package installations, it will automatically create the directories for you with the correct permissions but if you manually created directories before running the installation, there's a possibility that you created them as root so Cassandra can't access them.
If so, you will need to reset the permissions to the cassandra user for all the directories and subdirectories in /var/lib/cassandra.
For details, see the Installation instructions I wrote in the official Apache Cassandra website. Cheers!

Multinode cassandra cluster: Connection error: ('Unable to connect to any servers')

For my 6 node cluster, I am unable to cqlsh <ip> to the cluster. It gives me :
Connection error: ('Unable to connect to any servers', {'192.168.19.2': ProtocolError("cql_version '3.3.1' is not supported by remote (w/ native protocol). Supported versions: [u'3.4.4']",)})
But, I checked nodetool status, all my nodes are up and running. Also, I am able to contact the cluster via client.
For the cassandra.yaml on each node, I set the following parameters:
listen_address: node's ip
broadcast_address: node's ip
rpc_address: node's ip
broadcast_address: left blank
seed node: same two ips in each nodes
What seems to be the issue?
Update:
I am able to cqlsh from other nodes but not from the first nodes. I can observe that while working on the first node, I somehow messed up with its cqlsh version. Is it possible to change it?
Connection error: ('Unable to connect to any servers',
{'192.168.19.2': ProtocolError("cql_version '3.3.1' is not supported
by remote (w/ native protocol). Supported versions: [u'3.4.4']",)})
You do have different versions of cassandra installed or using the wrong driver. You want to upgrade to your drivers for connecting to your cluster as 3.4 seems to be a 3.10.x cluster while your driver only supports 3.0.x.

Error while making connection on oracle sql developer using linux OS

I am trying to make a new connection on oracle sqldeveloper as sysdba and when i hit test or connect i got this error message:
Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection
The default port is 1521, but 1522 is often common.
Check if the database is up. database will not be up causing this issue.
or Check if you are able to connect using sqlplus

Presto cassandra connector issue

I am trying to connect to presto for cassandra as below
./presto --server localhost:7070 --catalog cassandra
when i try to execute any query on it, it shows following error:
Error running command: Server refused connection: http://localhost:7070/v1/statement
i am new to it and have tried every possible effort to solve this.
could someone help me in this?

Cassandra connectivity issue

I am new to cassandra.
These are the resources with theirs' respected versions that i have used to set up cassandra.
java : jdk1.8.0.111
cassandra : 3.10
ubuntu : 15.10
I have intsalled cassandra and made changes in the cassandra.yaml file. when i run cqlsh from editor then it shows following error:
Connection error: ('Unable to connect to any servers', {'127.0.0.1': AuthenticationFailed('Remote end requires authentication.',)})
I tried my best to look at the issue but couldn't resolve it.
can someone please help me in this.
It seems you have enabled Authentication in your cassandra.yaml file. Login in cqlsh with default username and password 'cassandra'.
cqlsh <listen address> <cql port> -u cassandra -p cassandra
try below code
from cassandra.cluster import Cluster
from cassandra.auth import PlainTextAuthProvider
auth_provider = PlainTextAuthProvider(username ='<<username>>', password='<<password>>')
cluster=Cluster(['<<some ip or url >>'], auth_provider=auth_provider)

Resources