Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Hi..Is anything changed on TTL => 'FOREVER' on HDP 2.4?

avatar
Expert Contributor
 
1 ACCEPTED SOLUTION

avatar
Guru

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.

View solution in original post

12 REPLIES 12

avatar
Expert Contributor

Accepting this answer as well!

avatar
Expert Contributor

@Ted Yu

Same error Ted. Please see below:

ERROR: For input string: "MAX_VALUE"

avatar
Explorer

HConstants.FOREVER is now defined as follows:

  /**
   * Unlimited time-to-live.
   */
//  public static final int FOREVER = -1;
  public static final int FOREVER = Integer.MAX_VALUE;

So, you can specify 'FOREVER' for TTL by:

create 't1', {NAME => 'f1', TTL => 2147483647}

or

create 't1', {NAME => 'f1', TTL => 0x7fffffff}