From the Cloudera Hbase REST API docs, this is an XML structure for PUTmultiple lines at the same time.
PUT
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <CellSet> <Row key="cm93NQo="> <Cell column="Y2Y6ZQo=">dmFsdWU1Cg==</Cell> <Cell column="Y2Y6ZQo=">dmFsdWU1Cg==</Cell> </Row> <Row key="cm93NQo="> <Cell column="Y2Y6ZQo=">dmFsdWU1Cg==</Cell> </Row> </CellSet>
Q: How do I do this using JSON?
What I have tried so far:
CellSet
Error 500 Unrecognized field "CellSet" (class org.apache.hadoop.hbase.rest.model.CellSetModel) not marked as ignorant
{ "CellSet": { "Row": [ { "key": "cm93NQo=", "Cell": [ { "column": "Y2Y6ZQo=", "$": "dmFsdWU1Cg==" }, { "column": "Y2Y6ZQo=", "$": "dmFsdWU1Cg==" } ] }, { "key": "cm93NQo=", "Cell": [ { "column": "Y2Y6ZQo=", "$": "dmFsdWU1Cg==" } ] } ] } }
{ "Row": [ { "key": "cm93NQo=", "Cell": [ { "column": "Y2Y6ZQo=", "$": "dmFsdWU1Cg==" }, { "column": "Y2Y6ZQo=", "$": "dmFsdWU1Cg==" } ] }, { "key": "cm93NQo=", "Cell": [ { "column": "Y2Y6ZQo=", "$": "dmFsdWU1Cg==" } ] } ] }
, , . . Cloudera HBase REST api, github, CellModel . :
"Row": [ { "key": "myRowKey", "Cell": [ { "column": "myColumn", "$": "value1", "timestamp" : 1473379200 }, { "column": "myColumn", "$": "value2", "timestamp" : 1470000000 } ] }
, ,
Source: https://habr.com/ru/post/1672225/More articles:What is the difference between a reaction-based installation and an npm installation? - npmbottom-up tree traversal starting from a specific leaf - javaCannot start php bin / console in symfony - phpHow to start a new HTTP request only after the first is completed and ignore / cancel all other requests between - angularHow to derive a Tensorflow model with an I / O pipeline? - pythonIs there a risk of a collision of the namespace of two constants if they are used in imported modules but declared outside of them? - javascriptStrange overload behavior using variable arguments with primitive types in java - javaRedirection does not display component - reactjsWebpack compiler instance promotion? - javascriptHow to make RecyclerView recycle inside NestedScrollView? - optimizationAll Articles