Re: How to Create a Column in Hbase using Hbase Client API

2014-04-29 Thread Chamika Kasun
ble.put(row1, column0, value) > > > Matteo > > > > On Tue, Apr 29, 2014 at 12:09 PM, Chamika Kasun >wrote: > > > Yes this code is correct. Here what the code does is only create a column > > family. What i want to do is inside the column family i want to crea

Re: How to Create a Column in Hbase using Hbase Client API

2014-04-29 Thread Chamika Kasun
> > 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

How to Create a Column in Hbase using Hbase Client API

2014-04-29 Thread Chamika Kasun
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 la

Create a Table on a Specific Cluster in HBase

2014-04-28 Thread Chamika Kasun
Here i want to create a column family on a selected cluster. In cassandra i can do this as follows, But since i'm soo much new to HBase i have no idea how to do this using hbase. please help me out. In cassandra : public void createColumnFamily(Cluster cluster,String tableName,String columnFamily