Title
Create new category
Edit page index title
Edit category
Edit link
Configure HDP Hive, Tez, and Sqoop
This page describes how to configure Hive, Tez, and Sqoop services in HDP clusters to enable Pulse to collect query statistics, performance metrics, and lineage information.
Configure HDP Hive for Pulse
This section describes how to configure Hive so that Pulse can collect query data and metrics.
Configure HiveServer2 JMX
In the Ambari UI:
Navigate to Hive > Configs >
Advanced hive-env>hive-env template.In
hive-envtemplate``, choose and add one of the following JMX configurations based on your security requirements.
Enable JMX without Security on JMX Remote Port
To enable JMX port without any security, add the following parameters at the end of the file:
Avoid JMX Changes for Hive 1.x Using the MR Engine
Do not enable JMX for Hive 1.x when using the MapReduce (MR) execution engine. A known bug can cause query failures if JMX is enabled.
Enable Basic Authentication on JMX Remote Port (Optional)
To enable basic authentication on the JMX remote port, add the following parameters:
Enable TLS/SSL on JMX Remote Port (Optional)
To enable TLS/SSL authentication on the JMX remote port, add the following parameters:
Configure Hive Metastore JMX
In the Ambari UI:
Navigate to Hive > Configs >
Advanced hive-env>hive-env template.In
hive-envtemplate``, choose and add one of the following JMX configurations based on your security requirements.
Enable JMX without Security on JMX Remote Port
To enable JMX port without any security, add the following parameters at the end of the file:
Enable Basic Authentication on JMX Remote Port (Optional)
To enable basic authentication on the JMX remote port, add the following parameters:
Enable TLS/SSL on JMX Remote Port (Optional)
To enable TLS/SSL authentication on the JMX remote port, add the following parameters:
Place Hive Hook JARs
Pulse uses Hive hooks to capture query statistics.
Hook JAR Mapping
Distro Version | Hive Version | Tez Version | Pulse Hook Jar Name |
|---|---|---|---|
HDP 2.x | 1.2.x | 0.7.x | ad-hive-hook__hdp__1.2.x-assembly-x.y.x.jar |
HDP 2.x | 2.1.x (LLAP) | 0.7.x | ad-hive-hook__hdp__2.1.x-assembly-x.y.x.jar |
HDP 3.1.0.x | 3.1.x | 0.9.x | ad-hive-hook__hdp__3.1.0.3.1.0.0-78-assembly-x.y.x.jar |
HDP 3.1.4.x | 3.1.x | 0.9.x | ad-hive-hook__hdp__3.1.0.3.1.4.0-315-assembly-x.y.z.jar |
X.Y.Z >> For details about supported hook versions on each Pulse version, see Supported Hook Versions.
For Pulse 4.0.x, use the hook version 2.0.1
For Pulse 4.1.x, use the hook version 2.1.2
Steps to Place Hive Hook JARs
Get the Hive hook JARs from Acceldata (see mapping below).
Remove the existing Hive/Tez hook JAR from
/opt/acceldata/before placing the new JAR.Place the JARs on HiveServer2 and Hive interactive nodes in:
Ensure the hook directory is readable and executable by all users.
Add the hook JARs to
AUX_CLASSPATH:
Update the hook JAR name in the following properties to match your installed HDP distribution version.
For HiveServer2, navigate to Hive > Configs >
Advanced hive-env, add the following hook jar.
For example:
<JARNAME>: Select the corresponding Hook JAR from the mapping table based on your Hive and Tez versions.
For Hive Interactive, navigate to Hive > Configs >
Advanced hive-interactive-env, add the following hook jar.
For example:
<JARNAME>: Select the corresponding Hook JAR from the mapping table based on your Hive and Tez versions.
X.Y.Z >> For details about supported hook versions on each Pulse version, see Supported Hook Versions.
For Pulse 4.0.x, use the hook version 2.0.1.
For Pulse 4.1.x, use the hook version 2.1.2
Add the Pulse configurations in Hive > Configs >
Custom hive-siteandCustom hive-interactive-site.ad.events.streaming.servers=(<Pulse IP>:19009)
ad.cluster=(cluster name as specified in Pulse installation)
Add
io.acceldata.hive.AdHiveHook(use a comma if needed) to the following properties in Hive > Configs > General.
Configure HDP Tez for Pulse
This section describes how to configure Tez so that Pulse can collect query events.
Prerequisites
Obtain the Hive hook JARs from the Acceldata team.
Review the mapping table to identify the correct JAR version for your HDP distribution. For details, see the section Hook JAR Mapping on this page.
Steps for Configuration
Identify the hook JAR location.
For Hive 3.x on HDP 3.x (example: HDP 3.1.4):
Use the JAR ad-hive-hook_hdp_3.1.0.3.1.4.0-315-assembly-x.y.z.jar on the HDFS path:
For Hive 1.x on HDP 2.6.x: Use the JAR
ad-hive-hook_hdp_1.2.x-assembly-x.y.z.jaron the HDFS path.
$plugin[89wocz3mp33]
For Hive 2.x (LLAP) on HDP 2.6.x:
Use the JAR ad-hive-hook_hdp_2.1.x-assembly-x.y.z.jar on the HDFS path:
X.Y.Z >> For details about supported hook versions on each Pulse version, see Supported Hook Versions.
Update the Tez tarball with the Pulse hook JAR.
During upgrades or hook updates, ensure the Tez tarball contains only the latest Acceldata hook JAR. Remove any older hook files to avoid conflicts.
Update the
tez-siteproperties.In the Ambari UI, navigate to: Tez > Configs >
Custom tez-site.Add or update the following properties:
Optional (Hive 3.x only): The property
ad.hdfs.sinkis set totrueby default. If set tofalse, Tez will not publish query metadata proto logs to HDFS.
Configure HDP Sqoop for Pulse
This section describes how to configure Sqoop so that Pulse can collect query data.
Copy and place the Hive hook JARs (from the table above) into the Sqoop classpath directory:
Example path:
For clusters with LLAP (Hive Interactive) enabled, place both Hive 1.2.x and Hive 2.1.x hook JARs in the classpath.
Result
Hive exposes metrics over the configured port.
Hive, Tez, and Sqoop are configured with JMX monitoring, hook JARs, and Pulse integration for query and job statistics.
For additional help, contact www.acceldata.force.com OR call our service desk +1 844 9433282
Copyright © 2026