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


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: