Skip to content

Chapter 3 Riak Exercises

mattcallanan edited this page Sep 19, 2012 · 1 revision

Day 1

  1. Using PUT, update animals/polly to have a Link pointing to photos/polly.jpg
  2. POST a file of a MIME type we haven’t tried (such as application/pdf), find the generated key, and hit that URL from a web browser
  3. Add medicines:
  • Create new bucket type called medicines
  • PUT JPEG image value (with proper MIME type) keyed as antibiotics
  • Link to the animal Ace (poor, sick puppy)

Day 2

  1. Write map and reduce functions against the rooms bucket to find the total guest capacity per floor
  2. Extend the previous function with a filter to find the capacities only for rooms on floors 42 and 43

Day 3

  1. Create your own index that defines the animals schema.
  • Specifically, set the score field to integer type, and query it as a range
  1. Start up a small cluster of three servers (such as three laptops or EC2 instances), and install Riak on each
  • Set up the servers as a cluster
  • Install the Google stock dataset, located on the Basho website
Clone this wiki locally