Managing Data Operating System
Also available as:
PDF
loading table of contents...

Configure External HBase for Timeline Service 2.0

Based on your requirements, you can configure YARN to point to an external instance of the HBase service instead of using the HBase instance that is available with Timeline Service 2.0.

  • You must have installed HBase on your Hortonworks Data Platform (HDP) cluster before configuring the instance for Timeline Service 2.0.
  • The required hbase-site.xml file must be present on the host where the ResourceManagers, the NodeManager, and the Timeline Service V2.0 Reader are installed.

You can configure the HBase service for Timeline Service 2.0 on your HDP cluster either before or after installing YARN.

  1. Enable the use_external_hbase property under Advanced yarn-hbase-env.
    Depending on your requirement, use either of the following options to access the use_external_hbase property using Ambari:
    If... Then...
    YARN is already installed on the HDP cluster In Ambari Web, browse to Services > YARN > Configs, then expand Advanced yarn-hbase-env.
    You are using Ambari to install YARN on the HDP cluster On the Customize Services screen of the Add Service wizard, browse to YARN > Configs, then expand Advanced yarn-hbase-env.
    Note
    Note
    You must perform this step as part of the procedure to install YARN as a service using Ambari. For more information about using Ambari to add a service, see the Managing and Monitoring Ambari documentation.
  2. Update the yarn.timeline-service.hbase.configuration.file property under Advanced yarn-site to point to the hbase-site.xml file of the HBase instance that you want to configure.
    Depending on your requirement, use either of the following options to access the yarn.timeline-service.hbase.configuration.file property using Ambari:
    If... Then...
    YARN is already installed on the HDP cluster In Ambari Web, browse to Services > YARN > Configs, then expand Advanced yarn-site.
    You are using Ambari to install YARN on the HDP cluster On the Customize Services screen of the Add Service wizard, browse to YARN > Configs, then expand Advanced yarn-site.
    Note
    Note
    You must perform this step as part of the procedure to install YARN as a service using Ambari. For more information about using Ambari to add a service, see the Managing and Monitoring Ambari documentation.
  3. Save the configured property changes and restart all YARN services.
  4. Log on to the node that contains hbase-site.xml.
  5. Create the required HBase tables.
    export HBASE_CLASSPATH_PREFIX={hdp-dir}/hadoop-yarn/timelineservice/*; <hdp-dir>/hbase/bin/hbase org.apache.hadoop.yarn.server.timelineservice.storage.TimelineSchemaCreator -Dhbase.client.retries.number=35 -create -s
    Note
    Note
    <hdp-dir> indicates the directory where HDP is installed.
  6. From the HBase shell, grant the yarn user with the required permissions to access the HBase tables created in Step 5.
    grant 'yarn', 'RWXCA'
The Timeline Service V2.0 Reader component accesses and reads data from the new HBase instance.