Cassandra is no doubt one of the hottest choice when you are considering using NoSQL db. I’ll explain what’s the benefit of NoSQL and will compare some popular NoSQL in later posts. Let’s get your hands dirty and play with it first!
I thought it will be very easy install it, however, if you don’t familiar with Linux, it will probably take some time.
- Download Cassandra
browse Cassandra wiki page, and choose your preference to build it (Download, DebianPackaging, Build), of course, the fastest way is to download it. for me, I prefer to move the directory to /usr/local/cassandra along with mysql or other applications.
- Check your JDK and Ant version
please be notes that, in the latest version (2.0.4), it requires the minimum version of JDK, ANT and Git(if you want to build it yourself)
Tool
|
Version
|
Java SDK
|
1.7 (preferably the latest)
|
ANT
|
At least version 1.8
|
GIT
|
1.7
|
- Config Cassandra
check it in cassandra’s directory, you can config it by changing the yaml file: conf/cassandra.yaml, please note that you need to make sure these directories are matched and are created data_file_directories (/var/lib/cassandra/data), commitlog_directory (/var/lib/cassandra/commitlog), and saved_caches_directory (/var/lib/cassandra/saved_caches).
- Test it
If it was all set, you can simply start cassandra by typing bin/cassandra -f in your cassandra home directory (/usr/local/cassandra) in my environment for example. And you can create a simple Namespace and table by following the instructions.
- Develop with tools
There are a bunch of sdks that are available, so pick one by your language and enjoy your Cassandra journey! :)
Hey there, thanks for the information on NoSQL. I think it is less costly and it provides storage for semi-structured data and it is also provide flexibility in schema.
ReplyDeleteSQL Server Load Rest API