Member since
09-23-2015
1
Post
0
Kudos Received
0
Solutions
09-23-2015
01:59 PM
Hi, I am trying to understand how can I get ttl of HBase record using Java API 1.0.0-cdh5.4.5. I can add ttl using Put.setTTL() function, which actually is defined in Mutation. http://archive.cloudera.com/cdh5/cdh/5/hbase/apidocs/org/apache/hadoop/hbase/client/Mutation.html#setTTL%28long%29 But how can I get back my TTL for this record? Could you show me a snippet of the code to get a record by the key and get TTL for it. Also I explicitly set TTL for some records and for some records I use table's default TTL. Not sure if I should get ti the same way or they are different.
... View more
Labels:
- Labels:
-
Apache HBase