Tuesday, February 5, 2013

Apache Cassandra CQL in windows

How to run Apache Cassandra CQL in windows

Step 1: Install Apache Cassandra.

Step 2: Install Python.

Step 3: Add the Python executable path in the windows path variable, otherwise configure in the environment variable.
            Open command prompt :
            c:\> path =%path%;<python exe path>

Step 4: In the command prompt,navigate to cassandra\bin folder. (C:\cassandra\bin>)

Step 5: Execute the below command to start the CQL.
            python cqlsh localhost 9160.

Hope this helps someone.


  1. This comment has been removed by the author.

  2. I get invalid syntax error for datastax community edition for windows, I used below command as is from your blog

    python cqlsh localhost 9160