Created 06-06-2016 11:16 PM
Created 06-06-2016 11:47 PM
You can just omit the TTL parameter (meaning that do not specify) in which case it will default to FOREVER. I am not sure whether we used to parse TTL => 'FOREVER' as an expression before 2.4.
Created 06-06-2016 11:17 PM
Because customer is asking TTL => 'FOREVER' worked for them in HDP 2.2 and its not working in HDP 2.4 while creating the Hbase tables, So they have to give CONFIGURATION => {'hbase.store.delete.expired.storefile' => 'false'} instead of TTL.
Created 06-06-2016 11:30 PM
Can you ask for more detail from the customer ?
If a unit test which reproduces the situation can be obtained, that would be best.
I am going over changes to see if there may be any related JIRAs.
Created 06-06-2016 11:35 PM
We are trying to create the table in Hbase shell as below: Pasted the error.
ERROR: For input string: "FOREVER"
After this error we created table as below by removing TTL and adding hbase.store.delete.expired.storefile and it succeeded.
CONFIGURATION => {'hbase.store.delete.expired.storefile' => 'false'}}
Created 06-06-2016 11:36 PM
@Ted Yu Please see above
Created 06-06-2016 11:44 PM
Please see related code in PrettyPrinter.java :
{code}
private static String humanReadableTTL(final long interval){
...
if (interval == Integer.MAX_VALUE) { sb.append("FOREVER");
{code}Please specify Integer.MAX_VALUE for TTL and withdraw change to 'hbase.store.delete.expired.storefile'
Created 06-06-2016 11:47 PM
You can just omit the TTL parameter (meaning that do not specify) in which case it will default to FOREVER. I am not sure whether we used to parse TTL => 'FOREVER' as an expression before 2.4.
Created 06-07-2016 12:08 AM
@Enis This worked. We just omitted TTL and created table. After that we did a Describe table and see TTL FOREVER. Thanks Enis
Created 06-06-2016 11:48 PM
Turns out that the following JIRA is not in any HDP branch yet:
HBASE-13864 HColumnDescriptor should parse the output from master and from describe for TTL (Ashu Pachauri)
Before the above is backported, please use the workaround.
Created 06-07-2016 12:08 AM
Sure. Thanks @Ted Yu