From within an HBase application, you want to retrieve two versions of a row, if they exist. Where
your application should configure the maximum number of versions to be retrieved?

A.
HTableDescriptor
B.
HTable
C.
Get or scan
D.
HColumnDescriptor
Explanation:
maxVersions – Maximum number of versions to keep
Note:
*public HColumnDescriptor(byte[] familyName,
int maxVersions,
String compression,
boolean inMemory,
boolean blockCacheEnabled,
int timeToLive,
String bloomFilter)
*
An HColumnDescriptor contains information about a column family such as the number of
versions, compression settings, etc. It is used as input when creating a table or adding a column.
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.
Reference:org.apache.hadoop.hbase,Class HColumnDescriptor
I have the same idea. D
0
0