SlideShare a Scribd company logo
1 of 9
Download to read offline
Deploying a Cassandra cluster
on Amazon EC2
Clément LARDEUR
DataStax AMI
➔ AMI = Amazon Image Machine
https://aws.amazon.com/amis/datastax-auto-clustering-ami-2-2
➔ DataStax AMI does the following
◆ Install the number of nodes specified
◆ Uses RAID0 ephemeral disks instead of EBS
◆ Sets the seed nodes cluster-wide
◆ Install OpsCenter on the first node
◆ Configure replication strategy using EC2Snitch
Create Security Group
➔ Security Group act as a Firewall
➔ Ports Needed
Public Facing:
SSH:
22: Default SSH port
DataStax Enterprise Specific:
8012: Hadoop Job Tracker client port
8983: Portfolio Demo and Solr website port
50030: Hadoop Job Tracker website port
50060: Hadoop Task Tracker website port
OpsCenter:
8888: OpsCenter website port
Intranode:
Cassandra:
1024+: JMX reconnections
7000: Cassandra intra-node port
7199: Cassandra JMX monitoring port
9160: Cassandra client port
DataStax Enterprise Specific:
9290: Hadoop thrift port
OpsCenter:
50031: OpsCenter job tracker proxy
61620: OpsCenter intra-node monitoring ports
61621: OpsCenter agent port
Launch AMI
➔ Instance Details
◆ Number of instances = Number of nodes
◆ Instance Type :
● Extra large for production
● Large for development and light production
● Small and Medium not supported !!
Launch AMI
➔ Instance Options
--clustername <name>
The name of the Cassandra cluster
REQUIRED
--totalnodes <#>
Cluster size
REQUIRED
--version [ community | enterprise ]
Installs either DataStax Enterprise or
DataStax Community Edition
REQUIRED
DataStax Enterprise Specific
--username <user>
The username provided during DSE registration
--password is REQUIRED for a DSE installation
--password <pass>
The password provided during DSE registration
--username is REQUIRED for a DSE installation
--analyticsnodes <#>
Number of analytics nodes that run with Hadoop
Default: 0
--searchnodes <#>
Number of search nodes that run with Solr
Default: 0
Basic Options
--release <release_version>
Allows for the installation of a previous DSE
version
Example: 1.0.2-1
Default: Ignored
--opscenter no
Disables the installation of OpsCenter on the
cluster
Default: yes
Advanced Options
Connecting to instances
➔ Using SSH Client
◆ use your private key file (ex: DataStax.pem)
◆ change the connection user from root to ubuntu
➔ OpsCenter URL
http://<public-dns-of-first-instance>:8888/
➔ Install OpsCenter agents
◆ click on ‘Fix’
● username = ubuntu
● credentials = the entire content of your private key (.pem)
Configure OpsCenter Agents
The Dashboard shows the agent is connected
Expanding your cluster
➔ Adding node by reusing the DataStax AMI
http://www.datastax.com/documentation/cassandra/1.2/webhelp/index.html#cassandra/install/../..
/cassandra/install/expandAMI.html
1. stop cassandra
2. remove the data directories
3. configure cluster_name and seeds in file cassandra.yaml
4. start cassandra
➔ Extends the DataStax AMI
◆ adding --seeds option parameter
Demo

More Related Content

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
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
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

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
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
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)
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
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
 
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...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
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
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 

Featured (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

Deploying a Cassandra cluster on amazon EC2

  • 1. Deploying a Cassandra cluster on Amazon EC2 Clément LARDEUR
  • 2. DataStax AMI ➔ AMI = Amazon Image Machine https://aws.amazon.com/amis/datastax-auto-clustering-ami-2-2 ➔ DataStax AMI does the following ◆ Install the number of nodes specified ◆ Uses RAID0 ephemeral disks instead of EBS ◆ Sets the seed nodes cluster-wide ◆ Install OpsCenter on the first node ◆ Configure replication strategy using EC2Snitch
  • 3. Create Security Group ➔ Security Group act as a Firewall ➔ Ports Needed Public Facing: SSH: 22: Default SSH port DataStax Enterprise Specific: 8012: Hadoop Job Tracker client port 8983: Portfolio Demo and Solr website port 50030: Hadoop Job Tracker website port 50060: Hadoop Task Tracker website port OpsCenter: 8888: OpsCenter website port Intranode: Cassandra: 1024+: JMX reconnections 7000: Cassandra intra-node port 7199: Cassandra JMX monitoring port 9160: Cassandra client port DataStax Enterprise Specific: 9290: Hadoop thrift port OpsCenter: 50031: OpsCenter job tracker proxy 61620: OpsCenter intra-node monitoring ports 61621: OpsCenter agent port
  • 4. Launch AMI ➔ Instance Details ◆ Number of instances = Number of nodes ◆ Instance Type : ● Extra large for production ● Large for development and light production ● Small and Medium not supported !!
  • 5. Launch AMI ➔ Instance Options --clustername <name> The name of the Cassandra cluster REQUIRED --totalnodes <#> Cluster size REQUIRED --version [ community | enterprise ] Installs either DataStax Enterprise or DataStax Community Edition REQUIRED DataStax Enterprise Specific --username <user> The username provided during DSE registration --password is REQUIRED for a DSE installation --password <pass> The password provided during DSE registration --username is REQUIRED for a DSE installation --analyticsnodes <#> Number of analytics nodes that run with Hadoop Default: 0 --searchnodes <#> Number of search nodes that run with Solr Default: 0 Basic Options --release <release_version> Allows for the installation of a previous DSE version Example: 1.0.2-1 Default: Ignored --opscenter no Disables the installation of OpsCenter on the cluster Default: yes Advanced Options
  • 6. Connecting to instances ➔ Using SSH Client ◆ use your private key file (ex: DataStax.pem) ◆ change the connection user from root to ubuntu
  • 7. ➔ OpsCenter URL http://<public-dns-of-first-instance>:8888/ ➔ Install OpsCenter agents ◆ click on ‘Fix’ ● username = ubuntu ● credentials = the entire content of your private key (.pem) Configure OpsCenter Agents The Dashboard shows the agent is connected
  • 8. Expanding your cluster ➔ Adding node by reusing the DataStax AMI http://www.datastax.com/documentation/cassandra/1.2/webhelp/index.html#cassandra/install/../.. /cassandra/install/expandAMI.html 1. stop cassandra 2. remove the data directories 3. configure cluster_name and seeds in file cassandra.yaml 4. start cassandra ➔ Extends the DataStax AMI ◆ adding --seeds option parameter