Datastax Cassandra Cluster implementation in Debian ( Part 1 )

                                                             

Lets check how to setup Cassandra clustering in 3 Debian nodes. I am using Cluserssh tool to connect to all nodes at the same time.First create an login account in Datastax acadamey , which we will need during the installation process

Step 1:  Connect to all 3 nodes using clusterssh
  
              sudo cssh -l username node1ip node2ip node3ip

Step 2:  Make sure java is installed or install it
  
             sudo java -version

Step 3:  Add Datastax repository file
 
             sudo echo "deb https://login_email_Address:login_Password@debian.datastax.com/enterprise stable main" | sudo tee -a /etc/apt/sources.list.d/ datastax.sources.list

Step 4:  Add the Datastax repository key
 
             sudo curl -L https://debian.datastax.com/debian/repo_key | sudo apt-key add -

Step 5:  Install the package
 
             sudo apt-get update
             sudo apt-get install dse-full

Step 6:  Stop DSE service
 
             sudo service dse stop

Step 7:  Delete all files from cassandra data directory for a fresh cluster

             default data directory is : /var/lib/cassandra/

Step 8:  Change the following in each cassandra.yaml file
  
             default file path of cassandra.yaml is  /etc/dse/cassandra/cassandra.yaml


            cluster_name : [some_cluster_name]
            listen_address : [ip of each machine] (use :r !hostname -I to update every machine at a time if you are using cluster ssh)
            rpc_address : [ip of each machine] (use :r !hostname -I to update every machine at a time if you are using cluster ssh)
            seeds : [comma separated ips for identifying clusters. any two or three. Do not include all ips] 

Step 9:  Run DSE service
 
             sudo service dse start

Step 10:  Make sure that everything is running fine by checking the log
 
               sudo tail -f -n 1000 /var/log/cassandra/system.log

              Check cluster status
     
              sudo nodetool status

Comments

Popular posts from this blog

Datastax Error : Cannot start node if snitch's data center (dc1) differs from previous data center (dc2)

Datastax Error : Cassandra - Saved cluster name Test Cluster != configured name

Configure Nagios plugin " check_logfiles " for scanning log file

Popular posts from this blog

Datastax Error : Cannot start node if snitch's data center (dc1) differs from previous data center (dc2)

Datastax Error : Cassandra - Saved cluster name Test Cluster != configured name

Configure Nagios plugin " check_logfiles " for scanning log file