Trying to create a table using the REST API. Here's my curl request:

curl -v -X PUT \
  'http://cdh45:20550/curltest/schema' \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"name":"curltest","ColumnSchema":[{"name":"data", "COMPRESSION":
"GZ"}]}'

This creates the table 'curliest' with the column family 'data'. Problem
is, it doesn't set COMPRESSION (or any other options I pass):

hbase(main):020:0> describe 'curltest'
DESCRIPTION
                                                      ENABLED

 {NAME => 'curltest', FAMILIES => [{NAME => 'data', DATA_BLOCK_ENCODING =>
'NONE', BLOOMFILTER => 'NONE', REPLICATION_SCOPE => '0 true

 ', VERSIONS => '3', COMPRESSION => 'NONE', MIN_VERSIONS => '0', TTL =>
'2147483647', KEEP_DELETED_CELLS => 'false', BLOCKSIZE =>

  '65536', IN_MEMORY => 'false', ENCODE_ON_DISK => 'true', BLOCKCACHE =>
'true'}]}


Am I just formatting this wrong, or is this a known bug?

HBase version: 0.94.2-cdh4.2.0

Thanks!

Reply via email to