java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.storage.common.BaseTableRW<org.apache.hadoop.yarn.server.timelineservice.storage.application.ApplicationTable>
org.apache.hadoop.yarn.server.timelineservice.storage.application.ApplicationTableRW

public class ApplicationTableRW extends BaseTableRW<org.apache.hadoop.yarn.server.timelineservice.storage.application.ApplicationTable>
Create, read and write to the Application Table.
  • Field Details

    • TABLE_NAME_CONF_NAME

      public static final String TABLE_NAME_CONF_NAME
      config param name that specifies the application table name.
      See Also:
  • Constructor Details

    • ApplicationTableRW

      public ApplicationTableRW()
  • Method Details

    • createTable

      public void createTable(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.conf.Configuration hbaseConf) throws IOException
      Description copied from class: BaseTableRW
      Used to create the table in HBase. Should be called only once (per HBase instance).
      Specified by:
      createTable in class BaseTableRW<org.apache.hadoop.yarn.server.timelineservice.storage.application.ApplicationTable>
      Parameters:
      admin - Used for doing HBase table operations.
      hbaseConf - Hbase configuration.
      Throws:
      IOException - if any exception occurs while creating the table.
    • setMetricsTTL

      public void setMetricsTTL(int metricsTTL, org.apache.hadoop.conf.Configuration hbaseConf)
      Parameters:
      metricsTTL - time to live parameter for the metrics in this table.
      hbaseConf - configuration in which to set the metrics TTL config variable.