SlideShare a Scribd company logo
1 of 18
Intro to CCM
Chris Lohfink
CCM
A script/library to create, launch and remove an
Apache Cassandra cluster on localhost.
The goal of ccm and ccmlib is to make it easy to
create, manage and destroy a small Cassandra
cluster on a local box. It is meant for testing a
Cassandra cluster.
https://github.com/pcmanus/ccm
Useful for
 Cassandra without installing
 Testing failure scenarios
 Testing Upgrades
 Development with multiple nodes/versions
without the hardware
 Version migrations
 Integration testing
 Python dtests
 Java CCM Bridge
Not useful for
 Production
 Stress testing
Alternatives
 Docker
 Vagrant
 VMs
Create a cluster
clohfink-rmbp:~ clohfink$ ccm create -n 3 -v 1.2.19 cassandra1-2-19
Downloading {redacted} to {redacted}, (10.958MB)
6602752 [57.47%]
Create a cluster
clohfink-rmbp:~ clohfink$ ccm create -n 3 -v 1.2.19 cassandra1-2-19
Downloading {redacted} to {redacted}, (10.958MB)
11489812 [100.00%]
Extracting {redacted} as version 1.2.19 ...
Compiling Cassandra 1.2.19 ...
Current cluster is now: cassandra1-2-19
clohfink-rmbp:~ clohfink$
Create a cluster
clohfink-rmbp:~ clohfink$ ccm create -n 3 -v 1.2.19 cassandra1-2-19
Downloading {redacted} to {redacted}, (10.958MB)
11489812 [100.00%]
Extracting {redacted} as version 1.2.19 ...
Compiling Cassandra 1.2.19 ...
Current cluster is now: cassandra1-2-19
clohfink-rmbp:~ clohfink$ ccm status
Cluster: 'cassandra1-2-19'
--------------------------
node1: DOWN (Not initialized)
node3: DOWN (Not initialized)
node2: DOWN (Not initialized)
clohfink-rmbp:~ clohfink$
Start the cluster
Compiling Cassandra 1.2.19 ...
Current cluster is now: cassandra1-2-19
clohfink-rmbp:~ clohfink$ ccm status
Cluster: 'cassandra1-2-19'
--------------------------
node1: DOWN (Not initialized)
node3: DOWN (Not initialized)
node2: DOWN (Not initialized)
clohfink-rmbp:~ clohfink$ ccm start
clohfink-rmbp:~ clohfink$ ccm status
Cluster: 'cassandra1-2-19'
--------------------------
node1: UP
node3: UP
node2: UP
clohfink-rmbp:~ clohfink$
Replication Factor Example
clohfink-rmbp:~ clohfink$ ccm node1 cqlsh
Connected to cassandra1-2-19 at 127.0.0.1:9160.
[cqlsh 3.1.8 | Cassandra 1.2.19-SNAPSHOT ...]
Use HELP for help.
cqlsh>
Replication Factor Example
clohfink-rmbp:~ clohfink$ ccm node1 cqlsh
Connected to cassandra1-2-19 at 127.0.0.1:9160.
[cqlsh 3.1.8 | Cassandra 1.2.19-SNAPSHOT ...]
Use HELP for help.
cqlsh> CREATE KEYSPACE mspdemo WITH replication = {'class': 'SimpleStrategy',
'replication_factor' : 2};
Replication Factor Example
clohfink-rmbp:~ clohfink$ ccm node1 cqlsh
Connected to cassandra1-2-19 at 127.0.0.1:9160.
[cqlsh 3.1.8 | Cassandra 1.2.19-SNAPSHOT ...]
Use HELP for help.
cqlsh> CREATE KEYSPACE mspdemo WITH replication = {'class': 'SimpleStrategy',
'replication_factor' : 2};
cqlsh> use mspdemo;
cqlsh:mspdemo> CREATE TABLE users (name text, here boolean, PRIMARY KEY
(name));
Replication Factor Example
clohfink-rmbp:~ clohfink$ ccm node1 cqlsh
Connected to cassandra1-2-19 at 127.0.0.1:9160.
[cqlsh 3.1.8 | Cassandra 1.2.19-SNAPSHOT ...]
Use HELP for help.
cqlsh> CREATE KEYSPACE mspdemo WITH replication = {'class': 'SimpleStrategy',
'replication_factor' : 2};
cqlsh> use mspdemo;
cqlsh:mspdemo> CREATE TABLE users (name text, here boolean, PRIMARY KEY
(name));
cqlsh:mspdemo> INSERT INTO users (name, here) VALUES ('chris', true);
cqlsh:mspdemo> exit;
clohfink-rmbp:~ clohfink$ ccm flush
Replication Factor Example
clohfink-rmbp:~ clohfink$ ccm node1 cqlsh
Connected to cassandra1-2-19 at 127.0.0.1:9160.
[cqlsh 3.1.8 | Cassandra 1.2.19-SNAPSHOT ...]
Use HELP for help.
cqlsh> CREATE KEYSPACE mspdemo WITH replication = {'class': 'SimpleStrategy',
'replication_factor' : 2};
cqlsh> use mspdemo;
cqlsh:mspdemo> CREATE TABLE users (name text, here boolean, PRIMARY KEY
(name));
cqlsh:mspdemo> INSERT INTO users (name, here) VALUES ('chris', true);
cqlsh:mspdemo> exit;
clohfink-rmbp:~ clohfink$ ccm flush
clohfink-rmbp:~ clohfink$ ccm node1 json -k mspdemo -c users test;cat test
running
[’.../node1/data/mspdemo/users/mspdemo-users-jb-1-Data.db']
-- mspdemo-users-jb-1-Data.db -----
[
{"key": "6368726973","columns": [["","",14...000], ["here","true",14...000]]}
]
Replication Factor Example
cqlsh:mspdemo> INSERT INTO users (name, here) VALUES ('chris', true);
cqlsh:mspdemo> exit;
clohfink-rmbp:~ clohfink$ ccm flush
clohfink-rmbp:~ clohfink$ ccm node1 json -k mspdemo -c users test;cat test
running
[’.../node1/data/mspdemo/users/mspdemo-users-jb-1-Data.db']
-- mspdemo-users-jb-1-Data.db -----
[
{"key": "6368726973","columns": [["","",14...000], ["here","true",14...000]]}
]
clohfink-rmbp:~ clohfink$ ccm node2 json -k mspdemo -c users test;cat test
running
[’.../node2/data/mspdemo/users/mspdemo-users-jb-1-Data.db']
-- mspdemo-users-jb-1-Data.db -----
[
{"key": "6368726973","columns": [["","",14...000], ["here","true",14...000]]}
]
clohfink-rmbp:~ clohfink$ ccm node3 json -k mspdemo –c users test;cat test
running
[]
Multiple Clusters
clohfink-rmbp:~ clohfink$ ccm list
cassandra1-2-19
cassandra2-0-11
*cassandra2-1-2
DSE_Cluster
Solr_Cluster
clohfink-rmbp:~ clohfink$ ccm switch cassandra1-2-191
9
CCM Commands
Cluster Node
Create Show Scrub
Add Show Log Shuffle
Populate Tail Log SSTableSplit
List Set Log cli
Switch Start json
Status Stop cqlsh
Remove Ring decomission
Clear Flush Update config
Start Compact Stress
Stop Drain nodetool
Flush Cleanup dsetool
+ more Repair + DSE stuff
More
 http://www.datastax.com/dev/blog/ccm-
a-development-tool-for-creating-local-
cassandra-clusters
 https://github.com/pcmanus/ccm

More Related Content

What's hot

Object Storage with Gluster
Object Storage with GlusterObject Storage with Gluster
Object Storage with GlusterGluster.org
 
Scheduling torque-maui-tutorial
Scheduling torque-maui-tutorialScheduling torque-maui-tutorial
Scheduling torque-maui-tutorialSantosh Kumar
 
How to Troubleshoot OpenStack Without Losing Sleep
How to Troubleshoot OpenStack Without Losing SleepHow to Troubleshoot OpenStack Without Losing Sleep
How to Troubleshoot OpenStack Without Losing SleepSadique Puthen
 
Testing Wi-Fi with OSS Tools
Testing Wi-Fi with OSS ToolsTesting Wi-Fi with OSS Tools
Testing Wi-Fi with OSS ToolsAll Things Open
 
MySQL replication & cluster
MySQL replication & clusterMySQL replication & cluster
MySQL replication & clusterelliando dias
 
Elasticsearch (R)Evolution — You Know, for Search… by Philipp Krenn at Big Da...
Elasticsearch (R)Evolution — You Know, for Search… by Philipp Krenn at Big Da...Elasticsearch (R)Evolution — You Know, for Search… by Philipp Krenn at Big Da...
Elasticsearch (R)Evolution — You Know, for Search… by Philipp Krenn at Big Da...Big Data Spain
 
Up and Running with Glusto & Glusto-Tests in 5 Minutes (or less)
Up and Running with Glusto & Glusto-Tests in 5 Minutes (or less)Up and Running with Glusto & Glusto-Tests in 5 Minutes (or less)
Up and Running with Glusto & Glusto-Tests in 5 Minutes (or less)Gluster.org
 
Puppet Camp Dallas 2014: Replacing Simple Puppet Modules with Providers
Puppet Camp Dallas 2014: Replacing Simple Puppet Modules with Providers Puppet Camp Dallas 2014: Replacing Simple Puppet Modules with Providers
Puppet Camp Dallas 2014: Replacing Simple Puppet Modules with Providers Puppet
 
Replacing Simple Puppet Modules with Providers
Replacing Simple Puppet Modules with ProvidersReplacing Simple Puppet Modules with Providers
Replacing Simple Puppet Modules with ProvidersPuppet
 
Eduardo Silva - monkey http-server everywhere
Eduardo Silva - monkey http-server everywhereEduardo Silva - monkey http-server everywhere
Eduardo Silva - monkey http-server everywhereStarTech Conference
 
Cassandra Summit 2014: Down with Tweaking! Removing Tunable Complexity for Ca...
Cassandra Summit 2014: Down with Tweaking! Removing Tunable Complexity for Ca...Cassandra Summit 2014: Down with Tweaking! Removing Tunable Complexity for Ca...
Cassandra Summit 2014: Down with Tweaking! Removing Tunable Complexity for Ca...DataStax Academy
 
Debugging Network Issues
Debugging Network IssuesDebugging Network Issues
Debugging Network IssuesApcera
 
LXC on Ganeti
LXC on GanetiLXC on Ganeti
LXC on Ganetikawamuray
 
Как понять, что происходит на сервере? / Александр Крижановский (NatSys Lab.,...
Как понять, что происходит на сервере? / Александр Крижановский (NatSys Lab.,...Как понять, что происходит на сервере? / Александр Крижановский (NatSys Lab.,...
Как понять, что происходит на сервере? / Александр Крижановский (NatSys Lab.,...Ontico
 
Peeking into the Black Hole Called PL/PGSQL - the New PL Profiler / Jan Wieck...
Peeking into the Black Hole Called PL/PGSQL - the New PL Profiler / Jan Wieck...Peeking into the Black Hole Called PL/PGSQL - the New PL Profiler / Jan Wieck...
Peeking into the Black Hole Called PL/PGSQL - the New PL Profiler / Jan Wieck...Ontico
 

What's hot (20)

Object Storage with Gluster
Object Storage with GlusterObject Storage with Gluster
Object Storage with Gluster
 
Scheduling torque-maui-tutorial
Scheduling torque-maui-tutorialScheduling torque-maui-tutorial
Scheduling torque-maui-tutorial
 
How to Troubleshoot OpenStack Without Losing Sleep
How to Troubleshoot OpenStack Without Losing SleepHow to Troubleshoot OpenStack Without Losing Sleep
How to Troubleshoot OpenStack Without Losing Sleep
 
Testing Wi-Fi with OSS Tools
Testing Wi-Fi with OSS ToolsTesting Wi-Fi with OSS Tools
Testing Wi-Fi with OSS Tools
 
MySQL replication & cluster
MySQL replication & clusterMySQL replication & cluster
MySQL replication & cluster
 
Elasticsearch (R)Evolution — You Know, for Search… by Philipp Krenn at Big Da...
Elasticsearch (R)Evolution — You Know, for Search… by Philipp Krenn at Big Da...Elasticsearch (R)Evolution — You Know, for Search… by Philipp Krenn at Big Da...
Elasticsearch (R)Evolution — You Know, for Search… by Philipp Krenn at Big Da...
 
Up and Running with Glusto & Glusto-Tests in 5 Minutes (or less)
Up and Running with Glusto & Glusto-Tests in 5 Minutes (or less)Up and Running with Glusto & Glusto-Tests in 5 Minutes (or less)
Up and Running with Glusto & Glusto-Tests in 5 Minutes (or less)
 
Puppet Camp Dallas 2014: Replacing Simple Puppet Modules with Providers
Puppet Camp Dallas 2014: Replacing Simple Puppet Modules with Providers Puppet Camp Dallas 2014: Replacing Simple Puppet Modules with Providers
Puppet Camp Dallas 2014: Replacing Simple Puppet Modules with Providers
 
Replacing Simple Puppet Modules with Providers
Replacing Simple Puppet Modules with ProvidersReplacing Simple Puppet Modules with Providers
Replacing Simple Puppet Modules with Providers
 
WP migrations
WP migrationsWP migrations
WP migrations
 
Eduardo Silva - monkey http-server everywhere
Eduardo Silva - monkey http-server everywhereEduardo Silva - monkey http-server everywhere
Eduardo Silva - monkey http-server everywhere
 
Docker and Fargate
Docker and FargateDocker and Fargate
Docker and Fargate
 
Query logging with proxysql
Query logging with proxysqlQuery logging with proxysql
Query logging with proxysql
 
Cassandra Summit 2014: Down with Tweaking! Removing Tunable Complexity for Ca...
Cassandra Summit 2014: Down with Tweaking! Removing Tunable Complexity for Ca...Cassandra Summit 2014: Down with Tweaking! Removing Tunable Complexity for Ca...
Cassandra Summit 2014: Down with Tweaking! Removing Tunable Complexity for Ca...
 
Haproxy - zastosowania
Haproxy - zastosowaniaHaproxy - zastosowania
Haproxy - zastosowania
 
Debugging Network Issues
Debugging Network IssuesDebugging Network Issues
Debugging Network Issues
 
LXC on Ganeti
LXC on GanetiLXC on Ganeti
LXC on Ganeti
 
T.Pollak y C.Yaconi - Prey
T.Pollak y C.Yaconi - PreyT.Pollak y C.Yaconi - Prey
T.Pollak y C.Yaconi - Prey
 
Как понять, что происходит на сервере? / Александр Крижановский (NatSys Lab.,...
Как понять, что происходит на сервере? / Александр Крижановский (NatSys Lab.,...Как понять, что происходит на сервере? / Александр Крижановский (NatSys Lab.,...
Как понять, что происходит на сервере? / Александр Крижановский (NatSys Lab.,...
 
Peeking into the Black Hole Called PL/PGSQL - the New PL Profiler / Jan Wieck...
Peeking into the Black Hole Called PL/PGSQL - the New PL Profiler / Jan Wieck...Peeking into the Black Hole Called PL/PGSQL - the New PL Profiler / Jan Wieck...
Peeking into the Black Hole Called PL/PGSQL - the New PL Profiler / Jan Wieck...
 

Similar to Cassandra Cluster Manager (CCM)

Building cloud stack at scale
Building cloud stack at scaleBuilding cloud stack at scale
Building cloud stack at scaleShapeBlue
 
Drizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free MigrationDrizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free MigrationAndrew Hutchings
 
The Best and Worst of Cassandra-stress Tool (Christopher Batey, The Last Pick...
The Best and Worst of Cassandra-stress Tool (Christopher Batey, The Last Pick...The Best and Worst of Cassandra-stress Tool (Christopher Batey, The Last Pick...
The Best and Worst of Cassandra-stress Tool (Christopher Batey, The Last Pick...DataStax
 
Apache MXNet Distributed Training Explained In Depth by Viacheslav Kovalevsky...
Apache MXNet Distributed Training Explained In Depth by Viacheslav Kovalevsky...Apache MXNet Distributed Training Explained In Depth by Viacheslav Kovalevsky...
Apache MXNet Distributed Training Explained In Depth by Viacheslav Kovalevsky...Big Data Spain
 
Benchmarking top IaaS providers - A practical study
Benchmarking top IaaS providers - A practical studyBenchmarking top IaaS providers - A practical study
Benchmarking top IaaS providers - A practical studyKeerthi Balasundram
 
Benchmarking top IaaS providers - A practical study
Benchmarking top IaaS providers -  A practical studyBenchmarking top IaaS providers -  A practical study
Benchmarking top IaaS providers - A practical studyKeerthi Balasundram
 
Kubernetes & the 12 factor cloud apps
Kubernetes & the 12 factor cloud appsKubernetes & the 12 factor cloud apps
Kubernetes & the 12 factor cloud appsAna-Maria Mihalceanu
 
Bdc from bare metal to k8s
Bdc   from bare metal to k8sBdc   from bare metal to k8s
Bdc from bare metal to k8sChris Adkin
 
Introduction To Managing VMware With PowerShell
Introduction To Managing VMware With PowerShellIntroduction To Managing VMware With PowerShell
Introduction To Managing VMware With PowerShellHal Rottenberg
 
Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...
Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...
Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...Codemotion
 
Cutting through the fog of cloud
Cutting through the fog of cloudCutting through the fog of cloud
Cutting through the fog of cloudKyle Rames
 
Artem Zhurbila - docker clusters (solit 2015)
Artem Zhurbila - docker clusters (solit 2015)Artem Zhurbila - docker clusters (solit 2015)
Artem Zhurbila - docker clusters (solit 2015)Artem Zhurbila
 
GumGum: Multi-Region Cassandra in AWS
GumGum: Multi-Region Cassandra in AWSGumGum: Multi-Region Cassandra in AWS
GumGum: Multi-Region Cassandra in AWSDataStax Academy
 
An intro to Docker, Terraform, and Amazon ECS
An intro to Docker, Terraform, and Amazon ECSAn intro to Docker, Terraform, and Amazon ECS
An intro to Docker, Terraform, and Amazon ECSYevgeniy Brikman
 
Introduction to Cassandra
Introduction to CassandraIntroduction to Cassandra
Introduction to CassandraGokhan Atil
 
Capistrano 2 Rocks My World
Capistrano 2 Rocks My WorldCapistrano 2 Rocks My World
Capistrano 2 Rocks My WorldGraeme Mathieson
 
Head First to Container&Kubernetes
Head First to Container&KubernetesHead First to Container&Kubernetes
Head First to Container&KubernetesHungWei Chiu
 
KSQL - Stream Processing simplified!
KSQL - Stream Processing simplified!KSQL - Stream Processing simplified!
KSQL - Stream Processing simplified!Guido Schmutz
 

Similar to Cassandra Cluster Manager (CCM) (20)

Building cloud stack at scale
Building cloud stack at scaleBuilding cloud stack at scale
Building cloud stack at scale
 
Drizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free MigrationDrizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free Migration
 
The Best and Worst of Cassandra-stress Tool (Christopher Batey, The Last Pick...
The Best and Worst of Cassandra-stress Tool (Christopher Batey, The Last Pick...The Best and Worst of Cassandra-stress Tool (Christopher Batey, The Last Pick...
The Best and Worst of Cassandra-stress Tool (Christopher Batey, The Last Pick...
 
Apache MXNet Distributed Training Explained In Depth by Viacheslav Kovalevsky...
Apache MXNet Distributed Training Explained In Depth by Viacheslav Kovalevsky...Apache MXNet Distributed Training Explained In Depth by Viacheslav Kovalevsky...
Apache MXNet Distributed Training Explained In Depth by Viacheslav Kovalevsky...
 
Benchmarking top IaaS providers - A practical study
Benchmarking top IaaS providers - A practical studyBenchmarking top IaaS providers - A practical study
Benchmarking top IaaS providers - A practical study
 
Benchmarking top IaaS providers - A practical study
Benchmarking top IaaS providers -  A practical studyBenchmarking top IaaS providers -  A practical study
Benchmarking top IaaS providers - A practical study
 
Kubernetes & the 12 factor cloud apps
Kubernetes & the 12 factor cloud appsKubernetes & the 12 factor cloud apps
Kubernetes & the 12 factor cloud apps
 
Bdc from bare metal to k8s
Bdc   from bare metal to k8sBdc   from bare metal to k8s
Bdc from bare metal to k8s
 
GKE vs OpenStack Magnum
GKE vs OpenStack MagnumGKE vs OpenStack Magnum
GKE vs OpenStack Magnum
 
Introduction To Managing VMware With PowerShell
Introduction To Managing VMware With PowerShellIntroduction To Managing VMware With PowerShell
Introduction To Managing VMware With PowerShell
 
Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...
Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...
Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...
 
Cutting through the fog of cloud
Cutting through the fog of cloudCutting through the fog of cloud
Cutting through the fog of cloud
 
Artem Zhurbila - docker clusters (solit 2015)
Artem Zhurbila - docker clusters (solit 2015)Artem Zhurbila - docker clusters (solit 2015)
Artem Zhurbila - docker clusters (solit 2015)
 
GumGum: Multi-Region Cassandra in AWS
GumGum: Multi-Region Cassandra in AWSGumGum: Multi-Region Cassandra in AWS
GumGum: Multi-Region Cassandra in AWS
 
An intro to Docker, Terraform, and Amazon ECS
An intro to Docker, Terraform, and Amazon ECSAn intro to Docker, Terraform, and Amazon ECS
An intro to Docker, Terraform, and Amazon ECS
 
Introduction to Cassandra
Introduction to CassandraIntroduction to Cassandra
Introduction to Cassandra
 
Capistrano 2 Rocks My World
Capistrano 2 Rocks My WorldCapistrano 2 Rocks My World
Capistrano 2 Rocks My World
 
Cassandra 3.x et la future 4.0
Cassandra 3.x et la future 4.0Cassandra 3.x et la future 4.0
Cassandra 3.x et la future 4.0
 
Head First to Container&Kubernetes
Head First to Container&KubernetesHead First to Container&Kubernetes
Head First to Container&Kubernetes
 
KSQL - Stream Processing simplified!
KSQL - Stream Processing simplified!KSQL - Stream Processing simplified!
KSQL - Stream Processing simplified!
 

Recently uploaded

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
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 WorkerThousandEyes
 
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...apidays
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
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 CVKhem
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
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 DevelopmentsTrustArc
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 

Recently uploaded (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 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
 
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...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
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
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
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
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

Cassandra Cluster Manager (CCM)

  • 2. CCM A script/library to create, launch and remove an Apache Cassandra cluster on localhost. The goal of ccm and ccmlib is to make it easy to create, manage and destroy a small Cassandra cluster on a local box. It is meant for testing a Cassandra cluster. https://github.com/pcmanus/ccm
  • 3. Useful for  Cassandra without installing  Testing failure scenarios  Testing Upgrades  Development with multiple nodes/versions without the hardware  Version migrations  Integration testing  Python dtests  Java CCM Bridge
  • 4. Not useful for  Production  Stress testing
  • 6. Create a cluster clohfink-rmbp:~ clohfink$ ccm create -n 3 -v 1.2.19 cassandra1-2-19 Downloading {redacted} to {redacted}, (10.958MB) 6602752 [57.47%]
  • 7. Create a cluster clohfink-rmbp:~ clohfink$ ccm create -n 3 -v 1.2.19 cassandra1-2-19 Downloading {redacted} to {redacted}, (10.958MB) 11489812 [100.00%] Extracting {redacted} as version 1.2.19 ... Compiling Cassandra 1.2.19 ... Current cluster is now: cassandra1-2-19 clohfink-rmbp:~ clohfink$
  • 8. Create a cluster clohfink-rmbp:~ clohfink$ ccm create -n 3 -v 1.2.19 cassandra1-2-19 Downloading {redacted} to {redacted}, (10.958MB) 11489812 [100.00%] Extracting {redacted} as version 1.2.19 ... Compiling Cassandra 1.2.19 ... Current cluster is now: cassandra1-2-19 clohfink-rmbp:~ clohfink$ ccm status Cluster: 'cassandra1-2-19' -------------------------- node1: DOWN (Not initialized) node3: DOWN (Not initialized) node2: DOWN (Not initialized) clohfink-rmbp:~ clohfink$
  • 9. Start the cluster Compiling Cassandra 1.2.19 ... Current cluster is now: cassandra1-2-19 clohfink-rmbp:~ clohfink$ ccm status Cluster: 'cassandra1-2-19' -------------------------- node1: DOWN (Not initialized) node3: DOWN (Not initialized) node2: DOWN (Not initialized) clohfink-rmbp:~ clohfink$ ccm start clohfink-rmbp:~ clohfink$ ccm status Cluster: 'cassandra1-2-19' -------------------------- node1: UP node3: UP node2: UP clohfink-rmbp:~ clohfink$
  • 10. Replication Factor Example clohfink-rmbp:~ clohfink$ ccm node1 cqlsh Connected to cassandra1-2-19 at 127.0.0.1:9160. [cqlsh 3.1.8 | Cassandra 1.2.19-SNAPSHOT ...] Use HELP for help. cqlsh>
  • 11. Replication Factor Example clohfink-rmbp:~ clohfink$ ccm node1 cqlsh Connected to cassandra1-2-19 at 127.0.0.1:9160. [cqlsh 3.1.8 | Cassandra 1.2.19-SNAPSHOT ...] Use HELP for help. cqlsh> CREATE KEYSPACE mspdemo WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 2};
  • 12. Replication Factor Example clohfink-rmbp:~ clohfink$ ccm node1 cqlsh Connected to cassandra1-2-19 at 127.0.0.1:9160. [cqlsh 3.1.8 | Cassandra 1.2.19-SNAPSHOT ...] Use HELP for help. cqlsh> CREATE KEYSPACE mspdemo WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 2}; cqlsh> use mspdemo; cqlsh:mspdemo> CREATE TABLE users (name text, here boolean, PRIMARY KEY (name));
  • 13. Replication Factor Example clohfink-rmbp:~ clohfink$ ccm node1 cqlsh Connected to cassandra1-2-19 at 127.0.0.1:9160. [cqlsh 3.1.8 | Cassandra 1.2.19-SNAPSHOT ...] Use HELP for help. cqlsh> CREATE KEYSPACE mspdemo WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 2}; cqlsh> use mspdemo; cqlsh:mspdemo> CREATE TABLE users (name text, here boolean, PRIMARY KEY (name)); cqlsh:mspdemo> INSERT INTO users (name, here) VALUES ('chris', true); cqlsh:mspdemo> exit; clohfink-rmbp:~ clohfink$ ccm flush
  • 14. Replication Factor Example clohfink-rmbp:~ clohfink$ ccm node1 cqlsh Connected to cassandra1-2-19 at 127.0.0.1:9160. [cqlsh 3.1.8 | Cassandra 1.2.19-SNAPSHOT ...] Use HELP for help. cqlsh> CREATE KEYSPACE mspdemo WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 2}; cqlsh> use mspdemo; cqlsh:mspdemo> CREATE TABLE users (name text, here boolean, PRIMARY KEY (name)); cqlsh:mspdemo> INSERT INTO users (name, here) VALUES ('chris', true); cqlsh:mspdemo> exit; clohfink-rmbp:~ clohfink$ ccm flush clohfink-rmbp:~ clohfink$ ccm node1 json -k mspdemo -c users test;cat test running [’.../node1/data/mspdemo/users/mspdemo-users-jb-1-Data.db'] -- mspdemo-users-jb-1-Data.db ----- [ {"key": "6368726973","columns": [["","",14...000], ["here","true",14...000]]} ]
  • 15. Replication Factor Example cqlsh:mspdemo> INSERT INTO users (name, here) VALUES ('chris', true); cqlsh:mspdemo> exit; clohfink-rmbp:~ clohfink$ ccm flush clohfink-rmbp:~ clohfink$ ccm node1 json -k mspdemo -c users test;cat test running [’.../node1/data/mspdemo/users/mspdemo-users-jb-1-Data.db'] -- mspdemo-users-jb-1-Data.db ----- [ {"key": "6368726973","columns": [["","",14...000], ["here","true",14...000]]} ] clohfink-rmbp:~ clohfink$ ccm node2 json -k mspdemo -c users test;cat test running [’.../node2/data/mspdemo/users/mspdemo-users-jb-1-Data.db'] -- mspdemo-users-jb-1-Data.db ----- [ {"key": "6368726973","columns": [["","",14...000], ["here","true",14...000]]} ] clohfink-rmbp:~ clohfink$ ccm node3 json -k mspdemo –c users test;cat test running []
  • 16. Multiple Clusters clohfink-rmbp:~ clohfink$ ccm list cassandra1-2-19 cassandra2-0-11 *cassandra2-1-2 DSE_Cluster Solr_Cluster clohfink-rmbp:~ clohfink$ ccm switch cassandra1-2-191 9
  • 17. CCM Commands Cluster Node Create Show Scrub Add Show Log Shuffle Populate Tail Log SSTableSplit List Set Log cli Switch Start json Status Stop cqlsh Remove Ring decomission Clear Flush Update config Start Compact Stress Stop Drain nodetool Flush Cleanup dsetool + more Repair + DSE stuff