Cassandra: Command Not Found

npof75 picture npof75 · Apr 28, 2017 · Viewed 7.1k times · Source

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?

Answer

Ashraful Islam picture Ashraful Islam · Apr 28, 2017

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