hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: HBase REST API calls in JavaScript
Date Wed, 22 Apr 2015 02:25:55 GMT
Please take a look at:
https://developer.wordpress.com/docs/rest-api-javascript/

On Tue, Apr 21, 2015 at 5:57 PM, Arun Patel <arunp.bigdata@gmail.com> wrote:

> My HBase application provides an API to ingest XML data.  I am able to make
> successful PUT and GET calls to Hbase using below commands
>
> PUT:
>
> curl -k -H "Content-Type: application/xml" -H "Accept: application/xml" -d
> 'Rowkey and a column as an XML here'
> https://hostname:8443/mySrvc/webapi/put/VVDRC
>
> I get a successful response with a rowkey
>
> GET:
>
> curl -k -H "Accept: text/xml"
> https://hostname:8443/mySrvc/webapi/get/VVDRC/rowkey
>
> I get successful return of the row inserted with PUT.
>
> Now, how do I make these REST API calls in a Javascript or java.
> Javascript is preferred.  Please note my application will not be able to
> make any connection with HBase.  It has to use above REST API calls only.
>
> Please share any code snippet you might have.  Thanks a lot in advance.
>
> Regards,
> Arun
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message