w.r.t. using negative value for max versions, see the following:
public HColumnDescriptor setMaxVersions(int maxVersions) {
if (maxVersions <= 0) {
// TODO: Allow maxVersion of 0 to be the way you say "Keep all
versions".
// Until there is support, consider 0 or < 0 -- a configuration error.
throw new IllegalArgumentException("Maximum versions must be positive"
);
BTW MAX_INT is not unlimited :-)
On Tue, Apr 25, 2017 at 2:08 AM, schausson <[email protected]> wrote:
> Hi Ted,
>
> Thanks for your help...Formatting issue I guess : here is what I asked
> about
> hbase shell :
> Is it possible to invoke somethign like :
>
> create 'table', {NAME => 'cf', VERSIONS => -1 }
> create 'table', {NAME => 'cf', VERSIONS => MAX_INT }
>
> in order to support unlimited number of versions for the 'cf' column family
> ?
>
>
>
>
> --
> View this message in context: http://apache-hbase.679495.n3.
> nabble.com/Unlimited-number-of-versions-for-a-column-
> family-tp4087673p4087675.html
> Sent from the HBase User mailing list archive at Nabble.com.
>