DataStax distributes and supports a version of Apache Cassandra which manages real-time analytics, enterprise serach data and leverages its power with Apache Hadoop, Apache Solr, Apache Hive, Pig, Mahot, and much more.
Datastax version for Developers is free and and you can install it on your system to start working on the same.
Here in this tutorial i will be guiding you through the installation of Datastax on your local machine, along with OpsCenter which provides you with the GUI to view, manage and calculate the performance of the cluster.
Note: I am using Ubuntu 12.04 for the installation of Datastax on my local machine.
Now there are two ways by which you can install the same on your machine:
- Installing DataStax Enterprise Tarball Distribution
- Intalling DataStax Enterprise Packaged Releases
Here i am showing the installation step of the 2nd method i.e using Packaged Release
Step by Step Procedure for the installation
Prerequisite:
- Before you start with the installation go here to get Username and password, that will be sent on your Email.
- Root or sudo access of the installing machine
- Check for the version of Java installed using
java -version
Install the same if it is not there. Datastax uses Java 6 or 7. So if you have earlier version of java, do upgrade.
- Java Native Acess (JNA) is required. To install the same use:
$ sudo apt-get install libjna-java
Now if all these are there in your system then you can start with the installation.
Installation process:
-- Add the DataStax repository to /etc/apt/sources.list.d/datastax.list
$ sudo
sh -c
'echo "deb http://{username}:{password}@debian.datastax.com/enterprise stable main
" >> /etc/apt/sources.list.d/datastax.list'-- Add the DataStax repository key to your Aptitude trusted keys
$ curl -L https://debian.datastax.com/debian/repo_key | sudo apt-key add -
-- Install the Package
$ sudo apt-get update
$ sudo apt-get install dse-full opscenter
-- Let the package get installed on the machine. It will take around 350 mb of space in your system.
Once it is done, you can check your cassandra is up and running by using the command
$ nodetool status
it will show you something like:
$ nodetool status
Datacenter: Analytics
=====================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Owns Host ID Token Rack
UN 127.0.0.1 134.18 KB 100.0% 30b7c009-d7ca-46520cc956 -6123397601029893124 rack1
-- If you are done up till this, your datastax cassandra has been successfully installed on your system, It is up and running fine.
If you face any problem use the command:
$ sudo service cassandra stop
and then
$ sudo service cassandra start
This starts the server again. Hope it will work now.
you can also check for the installation using the command:
bin/cqlsh
bin/hive
bin/sqoop
for that you need to go to /usr in your linux file system from terminal
Now since we are done with datastax installation lets move on to the OpsCenter.
We have given the command: $ sudo apt-get install dse-full opscenterearlier, this has already installed the OpsCenter for you.
-- Now go to your browser and put in url
http://127.0.0.1:8888
you will see the OpsCenter screen running on your browser.
-- If you didn't see it try to stop and start it again using command:
sudo service opscenterd stop
and then
sudo service opscenterd start
-- If you still didn't able to see the OpsCenter using your browser try changing your OpenSSL version from 1.0.0+ to 0.9.8 (because this solved my problem as i was also not able to view the same:D )
use the command to change your OpenSSL version:
$ sudo apt-get install libssl0.9.8
-- And if somehow you still didn't see the OpsCenter in your browser
What you need to do now is change the IP configuration in
/etc/opscenter/opscenterd.conf
By default it will be something like:
[webserver ] port = 8888
interface = 127.0.0.1
change the interface to your Wlan Address.
After this it should work for you :)
Now since we are done with the installation process you guys must want to know about the directories path where all of the different file are saved and stored.
Packaged install locations
Cassandra directories
- /var/lib/cassandra (Cassandra and CassandraFS data directories)
- /var/log/cassandra
- /var/run/cassandra
- /usr/share/dse/cassandra (Cassandra environment settings)
- /usr/share/dse/cassandra/lib
- /usr/share/dse-demos (Portfolio, Solr, Sqoop demos)
- /usr/bin
- /usr/sbin
- /etc/dse/cassandra (Cassandra configuration files)
- /etc/init.d
- /etc/security/limits.d
- /etc/default/
- /usr/share/doc/dse-libcassandra (Notices and .cqlshrc samples)
Hadoop directories
- /usr/share/dse/hadoop (Hadoop environment settings)
- /etc/dse/hadoop (Hadoop configuration files)
Hive directories
- /usr/share/dse/hive (Hive environment settings)
- /etc/dse/hive (Hive configuration files)
Mahout directories
- /usr/share/dse/mahout (Mahout properties files)
- /etc/dse/mahout (Mahout JAR files)
Pig directories
- /usr/share/dse/pig (Pig environment settings)
- /etc/dse/pig (Pig configuration files)
Solr directories
- /usr/share/dse-demos (Search - Wikipedia demo)
- /usr/share/dse/solr/web/solr/WEB-INF (SPENGO configuration)
Sqoop directories
- /usr/share/dse/sqoop (Sqoop environment settings)
- /etc/dse/sqoop
- /usr/share/dse-demos (Sqoop demo)
Log4j directories
- /etc/dse/log4j (log4j configuration file)
- /usr/share/dse-demos (Log Search demo)
DataStax OpsCenter directories
- /var/lib/opscenter (SSL certificates for encrypted agent/dashboard communications)
- /var/log/opscenter (log directory)
- /var/run/opscenter (runtime files)
- /usr/share/opscenter (JAR, agent, web application, and binary files)
- /etc/opscenter (configuration files)
- /etc/init.d (service startup script)
- /etc/security/limits.d (OpsCenter user limits)
Find Comments below or Add one
Post a Comment