Hbase Tutorial: Creating A Table

Here we will create a table in Hbase

Creating a table

* Start the hbase shell by running

or

Make sure your Hbase Master server is up and running

* Run in the shell

Now you have a table called blogposts, with a post, and a image family. These families are “static” like the columns in the RDBMS world.

Add some data to the table

Run the following commands in the shell:

Look at the data

Run get ‘blogposts’, ‘post1′ in the shell. This should output something like this.

Share on FacebookShare on Google+Email this to someoneShare on RedditShare on LinkedInShare on TumblrTweet about this on TwitterShare on StumbleUpon

Leave a Reply

Current ye@r *