Installing Apache Cassandra on Mac

Arthur Lee
1 min readOct 17, 2018

--

create a folder for cassandra

$mkdir -p ~/opt/packages/cassandra/

download the file and unzip

$curl -O http://www-us.apache.org/dist/cassandra/3.11/apache-cassandra-3.11.3-bin.tar.gz
$tar -xzf apache-cassandra-3.11.3-bin.tar.gz

create a soft link

$ln -s ~/opt/packages/cassandra/apache-cassandra-3.11.3 ~/opt/cassandra

Edit the ~/.bash_profile to add PATH and source the setting

$sudo vim ~/.bash_profile
$source ~/.bash_profile

Verify does it succeed

$cassandra -v

--

--

Arthur Lee
Arthur Lee

Written by Arthur Lee

An machine learning engineer in Bay Area in the United States

No responses yet