Cassandra NoSQL Lan party

2,735 views

Published on

The PPT that should be displaying on the projector that guides you through the steps of a lan party.

Published in: Entertainment & Humor
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,735
On SlideShare
0
From Embeds
0
Number of Embeds
830
Actions
Shares
0
Downloads
15
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Cassandra NoSQL Lan party

  1. 1. Cassandra/NoSQL LAN Party
  2. 2. Concept <ul><li>Cassandra works on hetrogenious/commodity hardware
  3. 3. Naturally works in multi-node multi-dc scenarios
  4. 4. LAN parties are fun. Remember quake on 10mb? </li></ul>
  5. 5. Target Setup
  6. 6. Overall Steps <ul><li>Organize
  7. 7. Setup Networking
  8. 8. Calculate Tokens
  9. 9. Startup Cassandra
  10. 10. Create Keyspace and Column Family
  11. 11. Quick example of read write
  12. 12. Party! </li></ul>
  13. 13. Organize <ul><li>There should be three tables in room (ny,jp,fr) </li><ul><li>Each table has a switch
  14. 14. Each switch connected to other switch by cat5
  15. 15. Each tables should have 3-8 4ft ethernet cables </li></ul><li>Note networking Guru's and spread them across tables
  16. 16. Not C* guru's and spread them as well
  17. 17. C* NYC people will help as well </li></ul>
  18. 18. Networking <ul><li>At your table you should see an IP/mask
  19. 19. It should look like 10.1.0.X/255.0.0.0
  20. 20. Count the number of people at your table with laptop (count the laptop already set up)
  21. 21. Give each a number 2,3,4... call it N
  22. 22. Those people should set to IP 10.1.0.N
  23. 23. When done ping 10.1.0.1,10.2.0.1
  24. 24. If your using your own gear shut down firewall
  25. 25. If pings work wait for next stage </li></ul>
  26. 26. Calculate Tokens <ul><li>Total machines N. Your machine is M </li><ul><li>(admin write numbers on post-its and hand them out, alternating number per table) </li></ul><li>Run java TokenCalculator M N
  27. 27. Copy that # to cassandra.yaml
  28. 28. Set your IP as listen_address
  29. 29. Don't start Cassandra yet!
  30. 30. Quick check to make sure clock is in sync </li></ul>
  31. 31. Startup Cassandra <ul><li>Projector laptop should be running 'watch nodetool ring'
  32. 32. Have someone give your setup the once over
  33. 33. ./bin/cassandra -f
  34. 34. All cheer and take a swig as nodes join network!
  35. 35. Wait till we gets everyone online </li></ul>
  36. 36. Create a Keyspace and Column Family (done by admin) <ul><li>create keyspace world
  37. 37. with placement_strategy = 'org.apache.cassandra.locator.NetworkTopologyStrategy'
  38. 38. and strategy_options={1:3, 2:3, 3:3};
  39. 39. use world; create column family data with key_validation_class=UTF8Type
  40. 40. AND comparator=UTF8Type
  41. 41. AND default_validation_class=UTF8Type;
  42. 42. Use world; set Data['bsmith']['name']='bob'; </li></ul>
  43. 43. Quick example of read/write <ul><li>Start bin/cassandra-cli -h <ip> -p 9160
  44. 44. USE world;
  45. 45. List data;
  46. 46. get Data['bsmith'];
  47. 47. Disconnect some cables
  48. 48. Consistencylevel as [QUORUM,ALL,LOCAL_QUORUM,ONE]; </li></ul>
  49. 49. Party!

×