Re: Set Max Number of Row Versions of a table

2013-09-09 Thread Gaetan Deputier
Works pretty well. Thanks for the examples. On Mon, Sep 9, 2013 at 2:04 AM, Nicolas Liochon wrote: > Here is an example on trunk. IIRC, with 0.94, you may have to disable the > table before updating the definition. > > hbase(main):007:0> create 't2', {NAME => 'f1', VERSIONS => 5} > 0 row(s) in

Re: Set Max Number of Row Versions of a table

2013-09-09 Thread Nicolas Liochon
Here is an example on trunk. IIRC, with 0.94, you may have to disable the table before updating the definition. hbase(main):007:0> create 't2', {NAME => 'f1', VERSIONS => 5} 0 row(s) in 0.2820 seconds => Hbase::Table - t2 hbase(main):008:0> describe 't2' DESCRIPTION ENABLED 't2', {NAME => 'f1'

Re: Set Max Number of Row Versions of a table

2013-09-09 Thread Gaetan Deputier
I tried on a simple table using the following commands : create 't', 'f' alter 't', NAME => 'f', VERSIONS => 5 I have this Error : ERROR: Column family datafVERSIONS5 must have a name I have tried with the syntax from the alter help page but no success. Any hints ? I am running Hbase from Clo

Re: Set Max Number of Row Versions of a table

2013-09-09 Thread Gaetan Deputier
Exactly what i was looking for. Thank you very much ! On Mon, Sep 9, 2013 at 12:48 AM, Nicolas Liochon wrote: > There is a comment in this class that is outdated ("Once set, the > parameters that specify a column cannot be changed without deleting the > column and recreating it. If there is dat

Re: Set Max Number of Row Versions of a table

2013-09-09 Thread Nicolas Liochon
There is a comment in this class that is outdated ("Once set, the parameters that specify a column cannot be changed without deleting the column and recreating it. If there is data stored in the column, it will be deleted when the column is deleted."). This is from 2007. I will fix this. It's poss

Re: Set Max Number of Row Versions of a table

2013-09-08 Thread Ted Yu
Take a look at HColumnDescriptor#setMaxVersions() Cheers On Sun, Sep 8, 2013 at 9:13 PM, Gaetan Deputier wrote: > Hello Hbase users, > > Is it possible to set the max number of row versions of a table after its > creation ? > > Sincerely > > G. >

Set Max Number of Row Versions of a table

2013-09-08 Thread Gaetan Deputier
Hello Hbase users, Is it possible to set the max number of row versions of a table after its creation ? Sincerely G.