/    /  Pig – Architecture

Pig – Architecture:

  1. Parser – It checks the syntax of the script.
  2. Optimizer – It performs activities such as merge, split, joins, Order by, group by, etc. It basically tries to reduce the amount of data which is being send to the next stage.
  3. Compiler – It converts the code into Mapreduce jobs.
  4. Execution – Finally the job is submitted and the code is executed. We can then use Dump to show the output on the screen or can use store to store the output in text file or other type of file.