Home

Hive details page

The Hive APM provides a detailed view of the behavior of Hive queries. Typical users are Hadoop DBAs or app owners (engineers, BI team, analysts). You can use this view to resolve inefficiencies, bottlenecks, and reasons for failure within Hive apps.

When you open a Hive details page, the following details are displayed on the upper section of the page:

hive-apms-upper.png

Item No.

Description

1

Name or ID of the Hive query.

2

Details of the Hive app owner, cluster ID, and Queue.

3

Status indicator. Displays whether the app was successful, failed, or killed.

4

Start time of the query run.

End time of the query run.

Duration of the query run.

5

Duration of the Hive query run.

Number of Yarn applications involved in the query run.

Name of the Database where the query was run.

The following tabs are displayed on the left section of the page:

  • Table: This tab lists the jobs in a Hive query with the following details:

    • Job ID: ID of the job in the application.

    • Start Time: Time when the job started.

    • Duration: Period since the job has started.

    • I/O: Data input/output

  • Gantt Chart: The Gantt tab visually displays the progress of all the jobs along with their status in a color-coded bar against a timescale.

    The status, start time, duration, and events of the job are shown when you hover over the status bar. When you click the status bar, the Job summary page is displayed.

Note

For Hive queries that don't run using a Tez, LLAP, MapReduce, or Spark app, the duration shown by Unravel may be inaccurate because Hive doesn't call the Hive pre and post hooks correctly for these queries.

Hive query details

Hive runs on Tez, LLAP, MapReduce or Spark apps. When you select a Hive query from the application list, the details page of the hive query running on the corresponding apps are shown. Following are the tabs that are shown when you open a Hive query details page:

Resources
resources.png
  • Task Attempts:Graphically and textually notes the number of tasks and their status. The donut graphs show the successful (green), failed (orange), and killed (red) jobs.

  • Attempts: Graphs the map and reduce task slot usage over the duration of the job.

Query

Shows the Hive query along with the tables that were involved in running the query.

hive-apms-query.png
Execution

Shows detailed information about the Map and Reduce jobs are shown.

hive-apms-execution.png

Click the Job and the details of the tables and the Map and Reduce operations are shown. You click a table name and the table details are displayed :

hive-apms-execution1.png

Click Show input paths to view the input paths for the job.

hive-apms-execution2.png
Tables

Displays the list of tables that were accessed by the job.

hive-apms-tables1.png
Tags

This tab lists the tags used in the Tez application. Refer to Tagging.Tagging

hive-apms-tags.png
Job Summary

Click a job in the Tables tab, the Jobs summary page is displayed with the following tabs:

Analysis

This tab provides Unravel's analysis results where the inefficiencies of the Jobs can be improved. Efficiency suggestions and recommendations are provided to improve the the Job runs.

Resources

The resources contain the following charts:

  • Taskattempt (MAP, REDUCE): Graphically and textually notes the number of MAP and REDUCE task attempts. The donut graphs show the number of successful (green), failed (orange), and killed (red) tasks.

    hive-apms-resources-taskattempt.png
  • Attempt (MAP, REDUCE): Plots the number of MAP and REDUCE slots over a period.

    hive-apms-resources-attempt.png
  • Containers: Graphs the number of containers used.

    hive-apms-resources-containers.png
  • vCores and Memory Graphs the vCores and Memory used for running the jobs.

    hive-apms-resources-vcore-memories.png
  • Metrics: The details of the following metrics of the application are plotted in a graph:

    • OS Memory

    • CPU Utilization

    • Java Memory

    hive-apms-resources-metrics.png

    Click Get Data to get the raw data of the graph. You can further drill-down each metric.

Errors

This tab lists the errors that were encountered during the job run.

Logs

From this tab, you can view the logs.

Tags

This tab lists the tags used in the Spark application. Refer to Tagging.Tagging

Metrics

This tab lists all the metrics involved in running the job, their values, and their corresponding definitions.

hive-apms-job-metrics.png
Configurations

This tab lists all the configurations involved in running the job, their values, and their corresponding definitions.

hive-apms-jobs-configuration.png
Timeline

MAP REDUCE Charts: By default, the Time Line tab opens with the MAP REDUCE Charts displaying the tasks over the graphs.

hive-apms-timeline.png
Hive on Tez apps

The Hive on Tez apps are specifically highlighted in the Parent App column in the applications list. For more details, refer to Tez details page

Hive on Spark apps

For Hive-on-Spark jobs the Hive APM shows the details of the Spark app. Like the Spark APM, the running and completed Spark Jobs are listed. Click a job, the Spark Job information is shown and you can drill down into the Job's stages. See the Spark details page for more information.Spark details page