Cassandra: Command Not Found
Asked Answered
M

4

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?

Metcalf answered 28/4, 2017 at 8:46 Comment(0)
S
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
Solipsism answered 28/4, 2017 at 8:55 Comment(2)
I had to use: sudo sh cqlsh in $CASSANDRA_HOME/binFiscal
Did you try with sudo $CASSANDRA_HOME/bin/cqlsh ?Solipsism
C
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.

Callen answered 7/5, 2020 at 15:28 Comment(1)
Why? Which is the role of this script?Teenateenage
W
0

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

Whitening answered 27/11, 2019 at 7:39 Comment(0)
V
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

Vesper answered 8/5, 2020 at 8:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.