I know we can do it from hbase shell in the following way:
create 't1', {NAME => 'f1', VERSIONS => 5}
I could not find any corresponding option in HTableDesctiptor in the Java API. Any idea how to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Max versions, and other ttl type settings, is specified per column family. So the max versions is on the HColumnDescriptor.