SlideShare a Scribd company logo
1 of 13
Download to read offline
Installation of Cassandra DB
Tushar B. Kute,
http://tusharkute.com
Download the binaries
• Download the Cassandra binary file from below
link:
• http://a.mbbsindia.com/cassandra/2.2.5/apache-c
assandra-2.2.5-bin.tar.gz
• Remember the Cassandra 3.0 + needs the Java8
onwards.
Java installation
• Make sure that you have Java installed in your
system by,
$ java -version
• else, install it by,
$ sudo apt-get install openjdk-7-jdk
Extract and copy Cassandra
• Extract the cassandra's tar file by right clicking
on it and selecting 'Extract here' option.
• It will create the folder apache-cassandra-2.2.5.
• Rename this folder as 'cassandra'.
• Now, move this folder to /usr/lib
$ sudo mv cassandra/ /usr/lib
Create directories
• Create data, commitlog, saved_caches and log
directories:
sudo mkdir /usr/lib/cassandra/lib/data
sudo mkdir /usr/lib/cassandra/lib/commitlog
sudo mkdir /usr/lib/cassandra/lib/saved_caches
sudo mkdir /usr/lib/log
Make directory entries
• Open cassandra.yaml file and make these
directory entries in it.
sudo gedit /usr/lib/cassandra/conf/cassandra.yaml
• Go to end of this file and add the following:
data_file_directories:
- /usr/lib/cassandra/lib/data
commitlog_directory: /usr/lib/cassandra/lib/commitlog
saved_caches_directory: /usr/lib/cassandra/lib/saved_caches
Make log directory entry
• Open logback.xml
sudo gedit /usr/lib/cassandra/conf/logback.xml
• Edit the line number 35 as,
<file>/usr/lib/cassandra/log/system.log</file>
Edit the bashrc file
• Open the bashrc file:
sudo gedit ~/.bashrc
• Go to end of the file and add following lines.
export CASSANDRA_HOME=/usr/lib/cassandra
export PATH=$PATH:$CASSANDRA_HOME/bin
• Type following command to make it in effect:
source ~/.bashrc
Start the cassandra
• Start the cassandra by following command:
cassandra -f
• Keep this process running at foreground.
• Open another tab in the terminal (ctrl+shift+t)
and type:
cqlsh
Cassandra shell
Cassandra shell
Cassandra shell
tushar@tusharkute.com
Thank you
This presentation is created using LibreOffice Impress 4.2.8.2, can be used freely as per GNU General Public License
Blogs
http://digitallocha.blogspot.in
http://kyamputar.blogspot.in
Web Resources
http://mitu.co.in
http://tusharkute.com

More Related Content

More from Tushar B Kute

More from Tushar B Kute (20)

Implementation of FIFO in Linux
Implementation of FIFO in LinuxImplementation of FIFO in Linux
Implementation of FIFO in Linux
 
Implementation of Pipe in Linux
Implementation of Pipe in LinuxImplementation of Pipe in Linux
Implementation of Pipe in Linux
 
Basic Multithreading using Posix Threads
Basic Multithreading using Posix ThreadsBasic Multithreading using Posix Threads
Basic Multithreading using Posix Threads
 
Part 04 Creating a System Call in Linux
Part 04 Creating a System Call in LinuxPart 04 Creating a System Call in Linux
Part 04 Creating a System Call in Linux
 
Part 03 File System Implementation in Linux
Part 03 File System Implementation in LinuxPart 03 File System Implementation in Linux
Part 03 File System Implementation in Linux
 
Part 02 Linux Kernel Module Programming
Part 02 Linux Kernel Module ProgrammingPart 02 Linux Kernel Module Programming
Part 02 Linux Kernel Module Programming
 
Part 01 Linux Kernel Compilation (Ubuntu)
Part 01 Linux Kernel Compilation (Ubuntu)Part 01 Linux Kernel Compilation (Ubuntu)
Part 01 Linux Kernel Compilation (Ubuntu)
 
Open source applications softwares
Open source applications softwaresOpen source applications softwares
Open source applications softwares
 
Introduction to Ubuntu Edge Operating System (Ubuntu Touch)
Introduction to Ubuntu Edge Operating System (Ubuntu Touch)Introduction to Ubuntu Edge Operating System (Ubuntu Touch)
Introduction to Ubuntu Edge Operating System (Ubuntu Touch)
 
Unit 6 Operating System TEIT Savitribai Phule Pune University by Tushar B Kute
Unit 6 Operating System TEIT Savitribai Phule Pune University by Tushar B KuteUnit 6 Operating System TEIT Savitribai Phule Pune University by Tushar B Kute
Unit 6 Operating System TEIT Savitribai Phule Pune University by Tushar B Kute
 
Technical blog by Engineering Students of Sandip Foundation, itsitrc
Technical blog by Engineering Students of Sandip Foundation, itsitrcTechnical blog by Engineering Students of Sandip Foundation, itsitrc
Technical blog by Engineering Students of Sandip Foundation, itsitrc
 
Chapter 01 Introduction to Java by Tushar B Kute
Chapter 01 Introduction to Java by Tushar B KuteChapter 01 Introduction to Java by Tushar B Kute
Chapter 01 Introduction to Java by Tushar B Kute
 
Chapter 02: Classes Objects and Methods Java by Tushar B Kute
Chapter 02: Classes Objects and Methods Java by Tushar B KuteChapter 02: Classes Objects and Methods Java by Tushar B Kute
Chapter 02: Classes Objects and Methods Java by Tushar B Kute
 
Java Servlet Programming under Ubuntu Linux by Tushar B Kute
Java Servlet Programming under Ubuntu Linux by Tushar B KuteJava Servlet Programming under Ubuntu Linux by Tushar B Kute
Java Servlet Programming under Ubuntu Linux by Tushar B Kute
 
Module 02 Using Linux Command Shell
Module 02 Using Linux Command ShellModule 02 Using Linux Command Shell
Module 02 Using Linux Command Shell
 
Module 01 Introduction to Linux
Module 01 Introduction to LinuxModule 01 Introduction to Linux
Module 01 Introduction to Linux
 
Module 03 Programming on Linux
Module 03 Programming on LinuxModule 03 Programming on Linux
Module 03 Programming on Linux
 
See through C
See through CSee through C
See through C
 
Module 05 Preprocessor and Macros in C
Module 05 Preprocessor and Macros in CModule 05 Preprocessor and Macros in C
Module 05 Preprocessor and Macros in C
 
Module 03 File Handling in C
Module 03 File Handling in CModule 03 File Handling in C
Module 03 File Handling in C
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 

Installation of CassandraDB

  • 1. Installation of Cassandra DB Tushar B. Kute, http://tusharkute.com
  • 2. Download the binaries • Download the Cassandra binary file from below link: • http://a.mbbsindia.com/cassandra/2.2.5/apache-c assandra-2.2.5-bin.tar.gz • Remember the Cassandra 3.0 + needs the Java8 onwards.
  • 3. Java installation • Make sure that you have Java installed in your system by, $ java -version • else, install it by, $ sudo apt-get install openjdk-7-jdk
  • 4. Extract and copy Cassandra • Extract the cassandra's tar file by right clicking on it and selecting 'Extract here' option. • It will create the folder apache-cassandra-2.2.5. • Rename this folder as 'cassandra'. • Now, move this folder to /usr/lib $ sudo mv cassandra/ /usr/lib
  • 5. Create directories • Create data, commitlog, saved_caches and log directories: sudo mkdir /usr/lib/cassandra/lib/data sudo mkdir /usr/lib/cassandra/lib/commitlog sudo mkdir /usr/lib/cassandra/lib/saved_caches sudo mkdir /usr/lib/log
  • 6. Make directory entries • Open cassandra.yaml file and make these directory entries in it. sudo gedit /usr/lib/cassandra/conf/cassandra.yaml • Go to end of this file and add the following: data_file_directories: - /usr/lib/cassandra/lib/data commitlog_directory: /usr/lib/cassandra/lib/commitlog saved_caches_directory: /usr/lib/cassandra/lib/saved_caches
  • 7. Make log directory entry • Open logback.xml sudo gedit /usr/lib/cassandra/conf/logback.xml • Edit the line number 35 as, <file>/usr/lib/cassandra/log/system.log</file>
  • 8. Edit the bashrc file • Open the bashrc file: sudo gedit ~/.bashrc • Go to end of the file and add following lines. export CASSANDRA_HOME=/usr/lib/cassandra export PATH=$PATH:$CASSANDRA_HOME/bin • Type following command to make it in effect: source ~/.bashrc
  • 9. Start the cassandra • Start the cassandra by following command: cassandra -f • Keep this process running at foreground. • Open another tab in the terminal (ctrl+shift+t) and type: cqlsh
  • 13. tushar@tusharkute.com Thank you This presentation is created using LibreOffice Impress 4.2.8.2, can be used freely as per GNU General Public License Blogs http://digitallocha.blogspot.in http://kyamputar.blogspot.in Web Resources http://mitu.co.in http://tusharkute.com