Which release of HBase are you using ?

I tried your command on 0.98 :

hbase(main):002:0>  create 'testtable',{NAME => 'cf1', SPLITS =>
['row10','row20']}
Unknown argument ignored for column family cf1: SPLITS
0 row(s) in 0.3780 seconds

=> Hbase::Table - testtable
hbase(main):003:0> describe 'testtable'
DESCRIPTION
                                    ENABLED
 'testtable', {NAME => 'cf1', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER =>
'ROW', REPLICATION_SCOPE => '0', VE true
 RSIONS => '1', COMPRESSION => 'NONE', MIN_VERSIONS => '0', TTL =>
'2147483647', KEEP_DELETED_CELLS => 'false',
  BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}
1 row(s) in 0.0720 seconds

hbase(main):004:0> put 'testtable','row15','cf1','val1'
0 row(s) in 0.0770 seconds

hbase(main):005:0> scan 'testtable'
ROW                                          COLUMN+CELL
 row15                                       column=cf1:,
timestamp=1395257646541, value=val1
1 row(s) in 0.0330 seconds


On Wed, Mar 19, 2014 at 11:46 AM, Chandra Kant <[email protected]> wrote:

> Hi,
> I created  a table using create 'testtable',{NAME => 'cf1', SPLITS =>
> ['row10','row20']}.
>  It created the table, but when i do describe 'testtable' it returns me
> only:
> DESCRIPTION             ENABLED
> 'testtable'                      true
>
> 1 row(s) in 0.3160 seconds
>
> And  if i do put 'testtable','row15','cf1','val1'  it return me error
> <b>NoSuchColumnFamilyException: Column family cf1 does not exist.
> Why this weird result...?
> By the way, command  to create table using splits according to hbase
> documentation is create 't1','f1', {SPLITS => ['10', '20', '30', '40']}
>
> Regards
> Chandra kant

Reply via email to