Pig is developed by Yahoo. It is a high-level script language for analyzing large datasets. In Hadoop, programs should be written in such a way that programs are translated into map and reduce stages. To reduce the programmer's efforts, the Pig is built on top of the Hadoop.
It is named Pig as pig eats anything, Pig programming can handle any kind of data. The pig can be executed in two modes such as local mode and Map-reduce mode. Local mode is used for analyzing smaller datasets. The map-reduce mode is used for running Pig on analyzing larger datasets.
You can know more about the Hadoop ecosystem by watching this video: