Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Brew Cassandra Installation

I am on Mac OS High Sierra.

I did the following

brew install cassandra
brew services start cassandra 
cqlsh localhost


~ > cqlsh localhost
Connection error: ('Unable to connect to any servers', {'::1': error(61, "Tried connecting to [('::1', 9042, 0, 0)]. Last error: Connection refused"), '127.0.0.1': error(61, "Tried connecting to [('127.0.0.1', 9042)]. Last error: Connection refused")})

What is it that I'm doing wrong? is there any step in between?

like image 635
Knows Not Much Avatar asked Feb 05 '18 01:02

Knows Not Much


People also ask

How do I download and install Cassandra?

Download and Install CassandraRun the datastax community edition setup. After running the setup, you will see the following page will be displayed. It is a screenshot of 64 bit version. Press the next button and you will get the following page specifying the location of the installation.


1 Answers

For the future viewer, adding to the comment by @Apolozeus you might also want to check if Cassandra was linked after it was installed by brew.

> brew link cassandra

This will create symlinks, after this you can invoke cassandra.

> cassandra

> cqlsh

like image 140
Sonu Oommen Avatar answered Oct 06 '22 11:10

Sonu Oommen