Note that there are some explanatory texts on larger screens.

plurals
  1. POHBASE Rest API (Stargate) Post multiple cells / rows
    primarykey
    data
    text
    <p>I am trying to post multiple columns / rows to my hbase cluster using the rest api. I can post 1 column at a time without trouble, but can't seem to get it to accept multiple columns / rows.</p> <p>This works just fine</p> <p>Data:</p> <pre><code>{ "Row":{ "@key":"www.somesite.com", "Cell":{ "@column":"ColFam:Col1", "$":"someData" } } } </code></pre> <p>Call:</p> <pre><code>curl -v -X PUT -H "Content-Type: application/json" --data '{"Row": { "@key":"www.somesite.com", "Cell": { "@column":"ColFam:Col1", "$":"someData" } } }' http://somesite.com:8080/TestTable/www.somesite.com/ColFam:Col1 </code></pre> <p>According to the <a href="http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/rest/package-summary.html#operation_cell_store_multiple" rel="nofollow">api</a>, I should be able to post multiple rows / columns at the same time though.</p> <p>Multi Column Data:</p> <pre><code>{ "Row": { "key":"www.somesite.com", "Cell":[ { "column":"ColFam:Col1", "$":"someData" }, { "column":"ColFam:Col2", "$":"moreData" } ] } } </code></pre> <p>Multi Row Data:</p> <pre><code>{ "Row":[ { "key":"www.somesite.com", "Cell":[ { "column":"ColFam:Col1", "$":"someData" } ] }, { "key":"www.someothersite.com", "Cell":[ { "column":"ColFam:Col1", "$":"moreData" } ] } ] } </code></pre> <p>I tried using the following urls:</p> <pre><code>http://somesite.com:8080/TestTable/www.somesite.com/ColFam:Col1 http://somesite.com:8080/TestTable/www.somesite.com/ColFam http://somesite.com:8080/TestTable/www.somesite.com </code></pre> <p>To no avail. The documentation says to use false-row-key so I also tried:</p> <pre><code>http://somesite.com:8080/TestTable/false-row-key </code></pre> <p>Still no luck.</p> <p>I get the same error every time:</p> <pre><code>upload completely sent off: 124 out of 124 bytes HTTP/1.1 503 Service Unavailable </code></pre> <p>Any Ideas?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload