Upgrading to Datastax Cassandra 5.0 ( Part 2 )

                                                                       


Follow the instructions to upgrade  DataStax Enterprise  from 4.8 to 5.0 version. First take the backup of cassandra.yaml and dse.yaml. Don't forget to signup in Datastax acadamey , which we will need during the installation process 




Step 1:  Snapshot all keyspaces as needed.
          
             nodetool snapshot <keyspace_name>

Step 2:  Backup keyspace snapshot

Step 3:  Run nodetool drain to flush the commit log of the old installation.
            
             sudo nodetool -h hostname drain

Step 4:  Stop node services
         
            sudo service dse stop
            sudo service datastax-agent stop


Step 5:  Backup configuration file.
   
            cp -r /etc/dse/dse.yaml /home
            cp -r /etc/dse/cassandra/cassandra.yaml /home
            cp -r /etc/dse/cassandra/cassandra-topology.properties /home
            cp -r /etc/dse/cassandra/cassandra-env.sh /home



Step 6:  Make sure you have latest java is installed (1.8.0_40 minimum) or install it

             sudo java -version

Step 7:  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 8:  Add the Datastax repository key
      
            sudo curl -L https://debian.datastax.com/debian/repo_key | sudo apt-key add -

Step 6: Install the package

            sudo apt-get update
            sudo apt-get install dse-full

Step 7:  Configure the new version using backup configuration file we already taken.

Step 8:  Start Node service

             sudo service dse start
             sudo service datastax-agent start

              and make sure that everything is runnig fine by checking the log.

             tail -f -n 1000 /var/log/cassandra/system.log

Step 9:  Upgrade the SSTables
        
             sudo nodetool upgradesstables

Step 10:  Check Node status
   
               sudo nodetool status

Step 11:  Repeat the upgrade on each node in the cluster

Step 12:  If your upgrade includes DSE Search nodes:

                After all nodes are updated to 5.0, comment out all shard_transport_options instances in each dse.yaml file.
                 Restart the nodes to fully shut down the old shard transport. 

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