Download - Cassandraona pi why
![Page 1: Cassandraona pi why](https://reader035.vdocuments.mx/reader035/viewer/2022062705/556f5875d8b42a916b8b4c5c/html5/thumbnails/1.jpg)
Cassandra on a Raspberry Pi.
Why ?
![Page 2: Cassandraona pi why](https://reader035.vdocuments.mx/reader035/viewer/2022062705/556f5875d8b42a916b8b4c5c/html5/thumbnails/2.jpg)
Who Am I ?Andy Cobley
School of Computing
University of Dundee
Twitter: @andycobley
![Page 3: Cassandraona pi why](https://reader035.vdocuments.mx/reader035/viewer/2022062705/556f5875d8b42a916b8b4c5c/html5/thumbnails/3.jpg)
Whats a Raspberry Pi ?
Single chip Linux computer
500 Meg ram
Boots off an SD card
Ethernet port
![Page 4: Cassandraona pi why](https://reader035.vdocuments.mx/reader035/viewer/2022062705/556f5875d8b42a916b8b4c5c/html5/thumbnails/4.jpg)
Pi with pound coin
![Page 5: Cassandraona pi why](https://reader035.vdocuments.mx/reader035/viewer/2022062705/556f5875d8b42a916b8b4c5c/html5/thumbnails/5.jpg)
Here’s oneAnd there is one running in the street area
![Page 6: Cassandraona pi why](https://reader035.vdocuments.mx/reader035/viewer/2022062705/556f5875d8b42a916b8b4c5c/html5/thumbnails/6.jpg)
What’s Cassandra ?
NoSQL database
Important thing is it’s disturbed.
Scales and runs best in a cluster
Data is replicated across nodes
Any node, can answer any query
![Page 7: Cassandraona pi why](https://reader035.vdocuments.mx/reader035/viewer/2022062705/556f5875d8b42a916b8b4c5c/html5/thumbnails/7.jpg)
CassandraCan handle very distributed sites
Data can be in any data center, anywhere.
Typically runs on “consumer class” hardware
![Page 8: Cassandraona pi why](https://reader035.vdocuments.mx/reader035/viewer/2022062705/556f5875d8b42a916b8b4c5c/html5/thumbnails/8.jpg)
The Bad NewsCassandra is designed to be fast, fast at writing, now even faster at reading.
This laptop with one instance of Cassandra will do 12,000 write operations
Raspberry Pi will do 200 !
![Page 9: Cassandraona pi why](https://reader035.vdocuments.mx/reader035/viewer/2022062705/556f5875d8b42a916b8b4c5c/html5/thumbnails/9.jpg)
More bad news !Running a external USB drive is actually worse !
Problem is the USB, the SD card and the Network card all share the same bus
![Page 10: Cassandraona pi why](https://reader035.vdocuments.mx/reader035/viewer/2022062705/556f5875d8b42a916b8b4c5c/html5/thumbnails/10.jpg)
And then there’s Java!
Oracle Java vs OpenJDK
![Page 11: Cassandraona pi why](https://reader035.vdocuments.mx/reader035/viewer/2022062705/556f5875d8b42a916b8b4c5c/html5/thumbnails/11.jpg)
And RaspbianRaspbian is Debian for the PI
Uses the Hard floating point accelerator
Much faster than Debian
Oracle JDK won’t run on it !
![Page 12: Cassandraona pi why](https://reader035.vdocuments.mx/reader035/viewer/2022062705/556f5875d8b42a916b8b4c5c/html5/thumbnails/12.jpg)
![Page 13: Cassandraona pi why](https://reader035.vdocuments.mx/reader035/viewer/2022062705/556f5875d8b42a916b8b4c5c/html5/thumbnails/13.jpg)
The Good News !We’ve forgotten one thing
The Pi cost £25
You can power 4 from USB hub (no need for a power supply on each one
So:
![Page 14: Cassandraona pi why](https://reader035.vdocuments.mx/reader035/viewer/2022062705/556f5875d8b42a916b8b4c5c/html5/thumbnails/14.jpg)
So, have a 64 node computer
for £2000
University of Southhampton
![Page 15: Cassandraona pi why](https://reader035.vdocuments.mx/reader035/viewer/2022062705/556f5875d8b42a916b8b4c5c/html5/thumbnails/15.jpg)
Pi is for teachingSo for £200 we get an 8 node Cassandra cluster
It can be reconfigured, blown away, stress tested and generally abused
We can simulate data racks, data centers and I hope even long network delays.
Our upcoming MSc in Data Science will use these clusters
![Page 16: Cassandraona pi why](https://reader035.vdocuments.mx/reader035/viewer/2022062705/556f5875d8b42a916b8b4c5c/html5/thumbnails/16.jpg)
Pi is discoveryCassandra wouldn’t run on a PI
It does now.
Running it on a Pi shook out some Cassandra bugs
![Page 17: Cassandraona pi why](https://reader035.vdocuments.mx/reader035/viewer/2022062705/556f5875d8b42a916b8b4c5c/html5/thumbnails/17.jpg)
Pi is for fun !Most important, this was pure Geeky Fun
![Page 18: Cassandraona pi why](https://reader035.vdocuments.mx/reader035/viewer/2022062705/556f5875d8b42a916b8b4c5c/html5/thumbnails/18.jpg)
ThanksData Science:
http://www.computing.dundee.ac.uk/study/postgrad/degreedetails.asp?17
Dundee Developer Day and Big Data
17 November in here
http://dun.dddscotland.co.uk/sessions