Search code examples
cqlcql3cassandra-2.0cqlsh

Unable to start cqlsh in Mac OS X?


I have installed cassandra 2.0 successfully. When I try to start cql 3 I get no such option:

cassandra -v
2.0.9
./cqlsh -3
Usage: cqlsh [options] [host [port]]

cqlsh: error: no such option: -3

Solution

  • Once Cassandra is started (I guess in localhost with default settings) you can connect using

    ./cqlsh localhost
    

    if you want start it with a specific (older) version you can do

    ./cqlsh --cqlversion=X.Y.Z localhost;
    

    where X.Y.Z is the version (eg: 3.1.0)