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 can configure the HBase service for Timeline Service 2.0 on your HDP cluster
either before or after installing YARN.
-
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:
-
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:
-
Save the configured property changes and restart all YARN services.
-
Log on to the node that contains
hbase-site.xml
.
-
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 |
---|
<hdp-dir> indicates the directory where HDP is
installed.
|
-
From the HBase shell, grant the
yarn
user with the required
permissions to access the HBase tables created in Step 5.