hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars George <lars.geo...@gmail.com>
Subject Re: About Hbase
Date Fri, 09 Apr 2010 07:27:06 GMT
Hi,

>> The third is about the hbase shell, which implements an alter command,
>> that can change or add or delete a column family,but i remember the column
>> family cannot be changed after the table is created. I also want  to know
>> default max VERSIONs, when i create a table i give the VERSION 2,later i put
>> three values for the same row+column and different timestamp, but i can get
>> values rather than only two.
>
> The column family can be changed, not sure what you are referring to.
>
> Default max versions is 3, the rest of the question is unintelligible.

I think he means he has set Versions to 2 but sees more than those 2.
That is because the table has not yet been compacted. Run a major
compaction from the shell on that table and it will reduce the
versions to the enforced 2. Bottomline is, for a short period of time
(but can be hours, the default is < 24hrs), you may see more than the
set number of Versions. Think of it in terms of "Max. number of
versions to keep".

HTH,
Lars

Mime
View raw message