Apache Pig Explain Operator - Apache Pig

Why Explain Operator is used in Apache Pig?

Apache pig-explain operator is used to display the logical, physical, and MapReduce execution plans of a relation.

Syntax

Here’s the syntax of the explain operator.

Example

Assume we have a file student_data.txt in HDFS with the following content.
And we have read it into a relation student using the LOAD operator as shown below.
Let’s discuss about the relation named student using the explain operator as mentioned below.

Output

Here’s the final output.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Apache Pig Topics