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.

Node1: 172.16.167.176
Node2: 172.16.167.132
Node3: 172.16.167.185

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'
   
   seed_provider:
  - class_name: org.apache.cassandra.locator.SimpleSeedProvider
    parameters:
         - seeds: "172.16.167.176,72.16.167.132,72.16.167.185"
  listen_address: 172.16.167.176
  rpc_address: 172.16.167.176
  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 172.16.167.176 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 - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
     
   Step2: Append the debian package repository address to the server's source.list
    
    $ echo deb http://pkg.jenkins.io/debian-stable 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.
       
    URL:http://ip_address_or_domain_name:8080
    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.