Updating the OpenTSDB time-to-live value

Older versions of Control Center used a longer time-to-live (TTL) value for data maintained by the OpenTSDB database. The correct value for this version is 2592000 seconds (30 days). Use this procedure to update the TTL value, if necessary.
  1. Log in to the master host as root, or as a user with superuser privileges.
  2. Start an interactive shell in the OpenTSDB container.
    docker exec -it serviced-isvcs_opentsdb bash
  3. Start an interactive HBase shell.
    /opt/hbase/bin/hbase shell
    Example result:
    HBase Shell; enter 'help<RETURN>' for list of supported commands.
    Type "exit<RETURN>" to leave the HBase Shell
    Version 0.94.16, r1557241, Fri Jan 10 20:43:03 UTC 2014
                  
    hbase(main):001:0>
  4. Display the current settings of the tsdb table.
    describe 'tsdb'
    • If the result includes TTL => '2592000', stop. Use the exit command twice, to end the HBase shell and then the shell in the OpenTSDB container.
    • If the result includes a larger value for the TTL setting, perform the remaining steps.
  5. Disable the tsdb table.
    disable 'tsdb'
  6. Set the TTL value to 2592000 seconds (30 days).
    alter 'tsdb', {NAME=>'t', TTL=>'2592000'}
  7. Enable the tsdb table.
    enable 'tsdb'
  8. Display the current settings.
    describe 'tsdb'
    • If the result includes TTL => '2592000', proceed to the next step.
    • If the result includes a different value for the TTL setting, repeat the preceding steps.
  9. End the interactive HBase shell.
    exit
  10. End the interactive shell in the OpenTSDB container.
    exit