Set up Multi – node Cassandra3.6 Cluster on Ubuntu 16.04

In the below example i’m using 3 nodes with the below IP’s.Each of them have Single node cassandra cluster already set up in it.


Through the below simple steps im trying to set up the nodes to function as a multi node cassandra cluster so please run the below steps in all of your available nodes in your cluster.

   Step1:Stop Cassandra daemon & delete the default data set
     $ sudo service cassandra stop
     $ sudo rm -rf /var/lib/cassandra/data/system/*   
   Step2:COnfigure the cassandra cluster using the configuration file
   $ sudo vim  /etc/cassandra/cassandra.yaml
   cluster_name: 'CassandraDOCluster'
  - class_name: org.apache.cassandra.locator.SimpleSeedProvider
         - seeds: ",,"
  endpoint_snitch: GossipingPropertyFileSnitch
  auto_bootstrap: false
   Step3:Start cassndra server & check status
   $ sudo service cassandra start
   $ sudo nodetool status   

imageStep4:Log into your node’s CQL console and try make some changes in your Db tables just to check those changes are reflecting in your other nodes too. $ cqlsh 9042

You are done.
Note: You can log into the CQL console and check the db changes you makes are reflecting in your other nodes instantly.

Set up Jenkins on Ubuntu 16.04

You can set up Jenkins on ubuntu 16.04 by following below simple steps.

   Step1: Add the repository key to the system
     $ wget -q -O - | sudo apt-key add -
   Step2: Append the debian package repository address to the server's source.list
    $ echo deb binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list
    $ sudo apt-get update
   Step3:Install jenkins
    $ sudo apt-get install jenkins
   Step4:Start Jenkins
    $ sudo systemctl start jenkins
    $ sudo systemctl status jenkins
   Step5: Open firewall for the 8080 port which is default for jenkins.
    $ sudo ufw allow 8080
    $ sudo ufw status
   Step6: Setting up Jenkins:-Access your server URL with 8080 port and enter Authentication password by entering the below command.
    Obtain password by running below command
    $ sudo cat /var/lib/jenkins/secrets/initialAdminPassword      

You are done.
Now you can continue by choosing “Install Suggested Plugins” then create and admin accounnt.