HBase REST/Stargate PUT -


running hbase 1.1.0.1 standalone, accessing stargate api , able create table 2 columns 'c' & 'd'. i'm trying insert 1 column using following curl command. returns 400 bad request without explanation in logs.

i've tried both http://localhost:8080/table1/row1 & http://localhost:8080/table1/row1/c

formatted json comments section on issue hbase

curl -v -x put -h "content-type: application/json" -h "accept: application/json" 'http://localhost:8080/table1/row1' --data '{"row":[{"key":"cm93mq==", "cell":[{"column":"yw==", "$":"dmfsdwu="}]}]}'

can i'm missing above request?

in json, have mentioned column family ('c') not qualifier..

table1 table name.. row1 row key.. c column family.. whats column name? encode c:columnname using base64 , use in column field in json.. hope helps!


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -