Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cassandra NoHostAvailable: error in CQLSH

I just finished creating my table in cassandra. I attempted to insert data into the table and I was given this error:

cqlsh:test> INSERT into qw (id, user, pass, email, phoneNum) VALUES (1,  'scman', '123','[email protected]','123-456-7890');
NoHostAvailable:

I checked that my server was running. What could be causing this problem.

like image 365
Connor Myers Avatar asked Dec 29 '16 03:12

Connor Myers


Video Answer


1 Answers

This is too late to answer. But I wanted to share my experience.

If you have a single node cluster and use NetworkTopologyStrategy, then it throws this error. Check your keyspace configuration.

Error during inserting data: NoHostAvailable:

like image 123
Chaity Avatar answered Sep 21 '22 06:09

Chaity