5

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?

Sergei Bubenshchikov
  • 5,275
  • 3
  • 33
  • 60
npof75
  • 51
  • 1
  • 1
  • 2

4 Answers4

6

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
Ashraful Islam
  • 12,470
  • 3
  • 32
  • 53
1

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.

M S
  • 11
  • 2
0

On macOS,
You must in the dse folder, after that bin/cqlsh.

Romeo Ninov
  • 6,538
  • 1
  • 22
  • 31
Picode
  • 1,140
  • 1
  • 6
  • 12
0

You should go first on your Cassandra installation location or folder. / bin/

Then try to run below command:-

bin/cassandra or bin/cassandra -f

But if you have done package installation then you should try below command:- sudo service cassandra start

Please go through below link for more details about all other way to start Cassandra. https://cassandra.apache.org/doc/latest/getting_started/installing.html#installing-the-binary-tarball

LetsNoSQL
  • 1,478
  • 1
  • 11
  • 23