Tez Queries

Click TezQueries from the left navigation bar, to view the list of Tez queries.

Search Option

To search based on query metrics, perform the following steps:

  1. Click on the search bar on top of the query table .
  2. Choose the required parameters for the value you are looking for from the drop down menu. For example, if you are searching for the user Jackson, select 'user', then =, followed by 'Jackson'.
  3. Press enter or click Search.

Saving the Search Parameters

You can also save your searches and return to them later. To save your search, follow the steps:

  1. On the search bar, enter the search parameters.
  2. Click on the icon on the right side of the search bar.
  3. In the Save Search box add a name to the search.
  4. Click Save.
  5. Click the Search button in the search bar. A drop down menu with all saved searches appears.
  6. Click to activate your previously saved search.
Saving Search

Saving Search

The default time range is Last 24 hrs. To view statistics from a custom date range, click the icon and select a time frame and time zone of your choice.

Query Details

The following tables provides description of the metrics displayed for each query:

MetricDescription
IDThe ID of a query.
App ID

The ID of application used in a query.

To display the concurrency of queries, click ... icon and click View Concurrency.

To copy the ID, Click the icon. The ID is copied to clipboard.

UserThe user who executed the query.
QueueThe queue that the query belongs to.
DurationThe time taken to execute the query.
StatusThe final state of the query run by the user. The state can be: Failed, Killed, Running, Succeeded. To display the Logs of a particular query, click log icon.
Start TimeThe time at which the query started.
End TimeThe time at which the query completed execution.
HDFS ReadThe amount of HDFS data read.
HDFS WrittenThe amount of HDFS data written to an output file format.
MemoryThe amount of memory consumed in executing the query.
VCoreThe number of VCores used in query processing.
RecommendationsThe number of recommendations given to enhance your query. You can view the recommendations by clicking the query ID against the recommendation you want to view.
Hiveserver2The IP address of the installed host.

Click a query ID to view more details about the query in the Tez Query Details page.

To group queries by User or Queries, perform the following:

  1. Click Group By, drop-down menu is displayed.
  2. Select User, if you want to group the queries by user. Select Queries, if you want to group by queries. Select AppID to group the queries by their application IDs. Select Queue to group the Queries by Queue. The details by selected type is grouped.
  3. (Optional)To ungroup the queries, click Ungroup.

The following tables provides description of the metrics displayed for each query group:

MetricDescription
Group NameThe name of the group filtered by User or Queries.
Query CountThe number of queries in the group.
Failed QueriesThe number of queries that failed to execute.
Running QueriesThe number of currently running queries.
Avg MemoryThe average amount of memory consumed by a query group.
Total MemoryThe total memory consumed by a query group.
Avg VCoreThe average number of VCores used by a query group.
Total VCoreThe total number of VCores used by a query group.
Avg DurationThe average time taken to execute queries in a query group.
Total DurationThe total time taken to execute queries in a query group.

Note To view the list and details for each query in the group, click on the query row that you want to view details for, and details of the queries in that group are displayed.

Features of Tez Queries

Filter Panel

To filter the data you want to view in the table, click the filter drop-down menu. The following are the drop-down menu options:

  • User
  • Queue
  • Status
  • Hiveserver2

Advanced Search Options

The search field in the Tez Queries page supports Influx-like query statements. For example, if you want to search for a query, use the format parametername:value. However, you need to know the full name of the parameter to be able to use it. For example, the name of the parameter visible in the UI is User. However, internally, the parameter name is effective_user. Hence, if you want to search for queries with User = Mark, you need to type effective_user:Mark.

Click Reset to clear the applied filter.

Export

To export the data from the table, click the icon. The data is downloaded in .xlxs format.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard