Cassandra NoHostAvailable: error in CQLSH

cassandracqlsh

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','sc@gmaail.com','123-456-7890');
NoHostAvailable:

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

Best Answer

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:

Related Topic