New week, new database. This week is about HBase, a product that has a significant enterprisy feel about it. First it is written in Java, the de facto enterprise language. Then it is already in production in very large big data consumers (Facebook among others).
Perhaps more surprising is the fact that it even runs at all on a single, personal computer (as the book states, 5 dedicated servers is the recommended minimal configuration).
Today is a fairly short day. Getting HBase to run, creating a single table and a couple of rows, and that’s it.
As for Riak, I recommend downloading the HBase package rather than trying your luck with the Homebrew version. HBase runs directly from the extraction directory, and already includes all the dependencies.
Just edit the hbase-site.xml configuratio file as the book recommends, and you’re good to go.
This function is more an exercise in Ruby than in HBase. The code is just a variant of what is already in the book.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Use the put_many function
put_many function then checking the insert:
1 2 3 4 5 6
1 2 3 4 5
And that’s all for today. Tomorrow will be a bit more fun: first a significant take on of Wikipedia files, then using HBase to play with the loaded data.