Robin Jain
Robin Jain

Reputation: 65

cassandra nodetool error system cannot find path

I'm trying to run nodetool -h localhost ring using cmd in C:\Program Files\DataStax Community\apache-cassandra\bin but it is showing error:

Starting NodeTool
The system cannot find the path specified

Actually i want to run NodeTool utility to nodetool flush key_space column_family or nodetool compact key_space column_family. Are there any other ways to do it ? CQL? OpsCenter ?

Upvotes: 1

Views: 2431

Answers (1)

catpaws
catpaws

Reputation: 2283

I rarely work on Windows, so maybe it's a setup step I'm missing, but had the same problem. A DSC issue has been opened. Will get back to you.

The problem was I had Java 6 installed and JAVA_HOME pointed to it. I installed the latest JRE 7, set JAVA_HOME to point to it, and restarted the computer. Now, nodetool -h localhost status shows the status of my single node. After getting nodetool to work, I saw that there is a JRE installed with the Windows 64-bit version of Cassandra. I would try just setting JAVA_HOME to point to that one. Hope this helps.

Upvotes: 1

Related Questions