Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 584
eagertoLearn Avatar asked Jul 25 '14 21:07

eagertoLearn


People also ask

Where is Cqlsh located?

cqlsh is a command-line interface for interacting with Cassandra using CQL (the Cassandra Query Language). It is shipped with every Cassandra package, and can be found in the bin/ directory alongside the cassandra executable.

Where is Cassandra installed on Mac?

Following command is used to install Cassandra on MacOS. This installs Cassandra on location /usr/local/cellar/Cassandra .


1 Answers

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)

like image 107
Carlo Bertuccini Avatar answered Oct 19 '22 09:10

Carlo Bertuccini