Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # dev >> Examples of Multi Get and Multi Put using Stargate (JSON)

Copy link to this message
Examples of Multi Get and Multi Put using Stargate (JSON)
Hi All,

I am trying to find some examples involving multi-get and multi-put using stargate but couldn't get any.
I am following this page:


For multi-put, I tried the following:

curl -v -X PUT -H "Accept: application/json" http://hostname:9999/testjson/false-row-key --data @./data.txt
* About to connect() to hostname port 9999 (#0)
*   Trying connected
* Connected to hostname ( port 9999 (#0)
> PUT /testjson/row3 HTTP/1.1
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
> Host: hostname:9999
> Accept: application/json
> Content-Length: 271
> Content-Type: application/x-www-form-urlencoded
< HTTP/1.1 415 Unsupported Media Type
< Content-Length: 0
* Connection #0 to host hostname left intact
* Closing connection #0

For multi-get I tried the following:

curl -v -H "Accept: application/json" http://hostname:9999/testjson/multiget/?row=row1&row=row2

The above command only returns the first row.

If somebody has used the above operations successfully using REST, it would be of great help to
share the details.