When create your table, you specify the column families in the table (code
snippet from TestFromClientSide3.java):

    HTableDescriptor htd = newHTableDescriptor(hTable.getTableDescriptor());

    HColumnDescriptor hcd = new HColumnDescriptor(htd.getFamily(FAMILY));

    htd.addFamily(hcd);

    admin.createTable(htd);

When you insert data, you specify column along with data value.


Cheers


On Tue, Apr 29, 2014 at 11:08 AM, Chamika Kasun <[email protected]>wrote:

> Hi all,
>
> Here what i want to do is i want to firstly need to create and a column
> family and then need to create a column for data to be added later. Here i
> can not use PUT command as it requires a value parameter(because idea of
> that application is first initiate the table and data will be added later).
> Please help me out. I'm really new to hbase
>

Reply via email to