nitinsridar
nitinsridar

Reputation: 684

cqlsh and nodetool command not found

I have installed cassandra 3.11.4 as per the below link http://cassandra.apache.org/download/ and when I'm trying to run cqlsh and nodetool command its showing command not found. when run sudo service cassandra status,cassandra is running.

Please help

Upvotes: 2

Views: 2746

Answers (2)

LetsNoSQL
LetsNoSQL

Reputation: 1538

You need to verify the services whether it is running or not in the configured port and IPs. Also, you can check the system.log for any error. if still issue and data is not important you can delete the /data /commitlog /savedcache and restart the cassandra services again. once started just check ps -ef | grep cassandra

Upvotes: 1

Carlos Monroy Nieblas
Carlos Monroy Nieblas

Reputation: 2283

First, you need to verify that the service is healthy and operational

  • verify that the process is running:

    ps -efa | grep cassandra

    The expected outcome is a valid java process being executed

  • verify the log file as defined in $CASSANDRA_HOME/conf/logback.xml

    tail -n 100 cassandra/system.log

    The expected outcome is to not find errors

  • Try to replicate the issue in a new instance of the command line

Upvotes: 3

Related Questions