Cassandra. Estudiantes Documentation .
-
Upload
barbra-carr -
Category
Documents
-
view
222 -
download
1
Transcript of Cassandra. Estudiantes Documentation .
![Page 1: Cassandra. Estudiantes Documentation .](https://reader036.fdocuments.net/reader036/viewer/2022082818/56649f175503460f94c2d420/html5/thumbnails/1.jpg)
Cassandra
![Page 2: Cassandra. Estudiantes Documentation .](https://reader036.fdocuments.net/reader036/viewer/2022082818/56649f175503460f94c2d420/html5/thumbnails/2.jpg)
Estudiantes
![Page 3: Cassandra. Estudiantes Documentation .](https://reader036.fdocuments.net/reader036/viewer/2022082818/56649f175503460f94c2d420/html5/thumbnails/3.jpg)
Documentation
• http://cassandra.apache.org/doc/cql3/CQL.html
![Page 4: Cassandra. Estudiantes Documentation .](https://reader036.fdocuments.net/reader036/viewer/2022082818/56649f175503460f94c2d420/html5/thumbnails/4.jpg)
Step 1: Open Session
cluster.dcc.uchile.clusername: uhadooppassword: [on the board]
![Page 5: Cassandra. Estudiantes Documentation .](https://reader036.fdocuments.net/reader036/viewer/2022082818/56649f175503460f94c2d420/html5/thumbnails/5.jpg)
Step 2: Follow Me
• Important: Copy every command you make to a text file
• Important: Don’t try to copy everything I do!
![Page 6: Cassandra. Estudiantes Documentation .](https://reader036.fdocuments.net/reader036/viewer/2022082818/56649f175503460f94c2d420/html5/thumbnails/6.jpg)
Step 3: Load your own tableCOPY interests2 (name , age, color, top5bands, movieratings) FROM 'interests.csv';
• Create your own table that you will copy data into (pay attention to queries you’ll need)– CREATE TABLE interests[firstname] …– COPY interests[firstname] …
• Query for info of person “beside” you• Query for their favourite colour• Query for all people with the same age as you– (May need to build an index … no joins!)
• Delete people who like ‘black’
![Page 7: Cassandra. Estudiantes Documentation .](https://reader036.fdocuments.net/reader036/viewer/2022082818/56649f175503460f94c2d420/html5/thumbnails/7.jpg)
Types
![Page 8: Cassandra. Estudiantes Documentation .](https://reader036.fdocuments.net/reader036/viewer/2022082818/56649f175503460f94c2d420/html5/thumbnails/8.jpg)
Bulk Load• Can use ‘LOAD’ in CQL or …• Can write SSTables manually and load them– Load with sstableloader – Create with Java code (or copy from existing index) …
![Page 9: Cassandra. Estudiantes Documentation .](https://reader036.fdocuments.net/reader036/viewer/2022082818/56649f175503460f94c2d420/html5/thumbnails/9.jpg)
Questions
?
![Page 10: Cassandra. Estudiantes Documentation .](https://reader036.fdocuments.net/reader036/viewer/2022082818/56649f175503460f94c2d420/html5/thumbnails/10.jpg)
Class Project• Done in pairs (Except Alejandro/Mauricio :P)
• Goal: Use what you’ve learned to do something cool (basically)
• Expected difficulty: More than a lab’s worth – But from scratch / without my help!
• Marked on: Difficulty, appropriateness, scale, good use of techniques, presentation, coolness– Ambition is appreciated, even if you don’t succeed: feel free to bite
off more than you can chew!
• Process: – Pair up (default random) by Wednesday– Decide on a topic (by June 9th) or let me assign one – If you need data or get stuck, I will (try to) help out
• Deliverables: 10 minute presentation (June 23rd) & 4-page report– 2 weeks!