I, like millions of people in this new millennia, believe in technology. And whenever a cool thing comes out, it immediately excites me. I start reading about it and often times I do get sold quite easily. And due to this reason, I do setup a lot of things on my machine and this is the process I loathe.
And my experience with Cassandra not a piece of cake either! And now that I think about it, it is all my fault. Here below, I will show how ridiculously simple is the setup of Cassandra in a Mac machine. ( It should be similar in the Windows world too but I will write a post on it as soon as I setup one.)
So, here are the steps.
- Download.
- Go to http://cassandra.apache.org/download. There should be a “Latest Version” section in the page here. Check out the latest version by clicking on the version name. As of date, the latest release is 3.9 and when I clicked the link, it took me to http://www.apache.org/dyn/closer.lua/cassandra/3.9/apache-cassandra-3.9-bin.tar.gz
- Choose any mirror site and download the tar ball.
- Untar it any location you prefer.
- For example sake let’s pretend you downloaded it to the desktop
- Give Permissions.
- Using either terminal or the finder, go to desktop and give Read&Write permissions to all users and staff.
- Run
- Now open up a terminal, navigate to the bin folder.
- Type ./cassandra
- After a couple of seconds, your Cassandra DB is up and running.
- Open a new terminal tab and type the following the bin folder location.
- ./cqlsh
- This command will open up the cqlsh prompt where you will be able to run your CQL commands
