Spark Thrift Query Details
The Spark Thrift Query Details page provides detailed information about a selected query, including execution status, query trends, data usage, execution metrics, and the query DAG and plan.
Navigation
- In the Pulse UI, select Compute from the left navigation menu.
- Select Spark Thrift > Queries.
- Select an App ID to open the Spark Thrift Query Details page.
Summary Panel
The summary panel provides an overview of the selected query.
Query Details
- User — User who executed the query.
- State — Query state, such as Failed, Finished, Compiled, or Succeeded.
- Duration — Query execution time.
- Start Time — Time when query execution started.
- End Time — Time when query execution ended.
- # of Stages — Number of stages in the query.
- Scheduling Pool — Fair Scheduler pool associated with the query.
Resource Usage
- Shuffle Write Time — Time spent writing shuffle data.
- Disk Bytes Spilled — Amount of data spilled to disk during query execution.
- Cores Used/Allocated — Number of cores used and allocated to the query.
Query Trends
The Query Trends panel displays query execution trends based on the following metrics:
- Output Bytes — Amount of output data written during query execution.
- Input Bytes — Amount of input data read during query execution.
- Duration — Query execution time.
Query
The Query panel displays the SQL query that was executed.
You can:
- Select Copy to copy the query.
- Select Beautify Query to format the query for improved readability.
Data Details
The Data Details panel provides information about the data accessed by the query:
- Tables Used — Tables accessed by the query.
- Tables with Full Table Scan — Tables for which all rows and columns were scanned.
- Cached RDDs — RDD datasets cached in the Spark Thrift server.
Query Execution Metrics
The Query Execution Metrics panel provides detailed statistics and runtime metrics for the query.
Stats
- Shuffle Read Records Read — Number of shuffle records read.
- Shuffle Write Records Written — Number of shuffle records written.
- Shuffle Read Bytes Read — Amount of shuffle data read.
- Input Bytes Read — Amount of input data read.
- Shuffle Read Remote Blocks — Number of remote blocks fetched during shuffle operations.
- Shuffle Read Local Blocks — Number of local blocks fetched during shuffle operations.
- Shuffle Read Fetch Wait Time — Time spent waiting for remote blocks during shuffle operations.
- Output Bytes Written — Amount of output data written.
- Memory Bytes Spilled — Amount of data spilled from memory.
- Shuffle Write Bytes Written — Amount of data written during shuffle operations.
- Result Size — Size of the query result returned to the driver.
Execution Metrics
- Total Duration — Total query execution time.
- Cumulative Executor Runtime — Cumulative time spent by executors running the query.
- Task Duration — Time taken to complete tasks.
- JVM GC Time — Time spent by the JVM performing garbage collection.
Query DAG and Plan
The Query DAG and Plan panel provides visual representations of the query execution flow and logical plan.
DAG
The Directed Acyclic Graph (DAG) represents the execution flow of Spark operations as connected stages and tasks. The direction of the edges indicates the execution sequence.
Plan
The Plan provides a logical representation of how Spark executes the query by breaking it into different logical operations.

Have a suggestion?