Posts

Showing posts from July, 2015

Put in Hbase using REST API(Stargate)

Image
Hi Friends, Today  I am going to demonstrate simple example of putting data into hbase table using Stargate REST API. In this example , I have a simple Employee json document which I want to store into one of the cell of hbase. Here is my sample json documen. {"Employee":{"Ename":"Sam","Eid":12}} This sample contains employee name and employee ID. Instead of this json document i can use any other sample data which i want to store into hbase. I created a table in hbase with table name testtable having column family as colfam1. create 'testtable' , 'colfam1' Now I have everything available to being with. Next step is to form you REST query and simply fire it insert data into hbase, Here is sample example taken from  https://wiki.apache.org/hadoop/Hbase/Stargate for inserting data into hbase. curl -H "Content-Type: text/xml" --data '[...]' http://localhost:8000/test/testrow/test:testcolumn Ma