Tuesday, February 5, 2013

Apache Cassandra CQL in windows

How to run Apache Cassandra CQL in windows

Step 1: Install Apache Cassandra.
            http://apachecassandra.blogspot.com/2013/01/apache-cassandra-on-windows-7.html

Step 2: Install Python.
            http://www.python.org/download/releases/2.7.3/

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.



5 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  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


    ReplyDelete
  3. This could guide you better..
    http://www.edureka.co/blog/how-to-open-cqlsh-of-cassandra-installed-on-windows/

    ReplyDelete
  4. Thanks for providing this informative information. it is very useful you may also refer- http://www.s4techno.com/blog/category/cassandra/

    ReplyDelete