Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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
New Member

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}