-bash: nodetool: command not found

1k Views Asked by At

i want to monitor cassandra through cli but as soon as i hit nodetool command it says

nodetool command not found

cassandra is installed in my host

enter image description here

here is the cassandra bin path and data

enter image description here

and here is the configuration directory of Cassandra

enter image description here

i can say cassandra is properly installed but nodetool is not working how can i solve this any kind of suggestion or help would be really helpful

1

There are 1 best solutions below

2
Erick Ramirez On

You have a tarball installation of Cassandra (vs packaged installation) so you need to provide the path to the bin/ directory in order to execute the Cassandra tools. For example:

$ /path/to/cassandra_installation/bin/nodetool status

You can also configure the PATH environment variable on Linux to include Cassandra's bin/ directory so you don't have to specify the full path every time you run the nodetool command. For example:

$ export PATH="$PATH:/path/to/cassandra_installation/bin"

Cheers!