Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cassandra: Command Not Found

I am currently working on the Cassandra tutorials about data modeling. I cannot understand why whenever I try to run the cassandra service from the bin folder I receive the error:

"Cassandra: command not found".

The same happens if I try to run nodetool, or cqlsh utilities. Can anybody help me to resolve the problem?

like image 490
npof75 Avatar asked Apr 28 '17 08:04

npof75


2 Answers

All the cassandra binary are in the $CASSANDRA_HOME/bin folder.

If you run command from the CASSANDRA_HOME then use :

bin/cassandra
bin/cqlsh
bin/nodetool
like image 186
Ashraful Islam Avatar answered Sep 30 '22 05:09

Ashraful Islam


I know is too late now, but for anyone experiencing this problem, while you are already in the bin directory, use ./cqlsh < IP >. Also if you configured a multi node cluster, use ./nodetool status and check if you have all the IPs there.

like image 42
M S Avatar answered Sep 30 '22 05:09

M S