Fixing the ClassNotFoundException when running cassandra-cli


A problem I have seen frequently reported when trying to run cassandra-cli is the ClassNotFoundException.
The most likely cause of this exception is a problem with the cassandra_home path.

You have to make sure you have the correct path to the Cassandra root directory in your enviornment variables.
– If it doesn’t already exist, add a user/system variable called CASSANDRA_HOME.
– Set it to /your_path_to_cassandra/apache-casssandra-0.8.4 or c:\your_path_to_cassandra\apache-casssandra-0.8.4 depending on your system.

This should solve the problem

Advertisements