Viewing explain plan for a Hive query
The Visual Explain feature provides a graphical representation of the query execution plan. The Explain plan is read from right to left. It provides details about every stage of query execution.
- Go to the Cloudera Data Warehouse (CDW) web interface and open Hue from your Virtual Warehouse.
Click Jobs from the left assist panel.
The Job Browser page is displayed.
- Go to the Queries tab and click on the query for which you want to view the query details.
Click on Visual Explain.
The following image shows the Visual Explain tab on the Hue web interface:
- (Optional) Click to download the query explain plan in JSON format.