wood burning stoves 2.0*
The moose likes Distributed Java and the fly likes Is this correct way of using HBase REST API to just parse the response from its URL? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Is this correct way of using HBase REST API to just parse the response from its URL?" Watch "Is this correct way of using HBase REST API to just parse the response from its URL?" New topic
Author

Is this correct way of using HBase REST API to just parse the response from its URL?

Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 644
I did not find any example of HBase REST Client to put GET POST request.So instead of this what I am doing is I am just using the HBase REST URL ,putting it in my java code and just parsing the response using SAX parser..Is this correct way(because i m not using GET request..i did not find example of using GET post On Hbase REST client) thanks..
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12785
    
    5
1. GET and POST are two different HTTP actions so "GET POST request" does not make any sense. One would normally say "GET request" or "POST request" not "GET post"

2. By the REST architectural style, GET is for getting the current state of a resource without modifying it.

Wandering around the HBase docs I find:


so it appears HBase supports GET directly.

Bill
Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 644
thanks Bill.but i did not find a way of specifying the URL.I mean before sending GET request or POST request.I need to specify the URL. One way I found was using the HBsae url :http://xx.xx.xx.xx:60050/TableName/*/

(the Hbase rest URL) and parsing this URL XML using SAX parser.but this is not the normal way of REST WS consumption.Please advice.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12785
    
    5
Monica. Shiralkar wrote:thanks Bill.but i did not find a way of specifying the URL.I mean before sending GET request or POST request.I need to specify the URL. One way I found was using the HBsae url :http://xx.xx.xx.xx:60050/TableName/*/

(the Hbase rest URL) and parsing this URL XML using SAX parser.but this is not the normal way of REST WS consumption.Please advice.


Where did you get that idea? REST is just an architecture, you can handle the response any way you please (as opposed to SOAP which is a messaging API with more tightly defined rules)

Note that a REST style response can be anything, not just XML.

Bill
Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 644
Tha? for huge data when i read this URL,for minutes no response comes.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is this correct way of using HBase REST API to just parse the response from its URL?