Skip to main content

Command Palette

Search for a command to run...

Pig Latin ๐Ÿท from Scratch!

Updated
โ€ข1 min read

What is Pig?

Pig is a high-level language build by Yahoo! it provides an abstraction over map-reduce. by using Pig we can perform tasks easily with less code. it gives us high productivity, although not everything can be achieved by Pig itself.

Add a subheading.png

Pig Latin

Pig Latin is used for the development of the script. where we code the steps to be done over the data. this provides us predefined lines of code that do the whole task easily.

Pig Execution

Pig Execution comes after the pig Latin script, it makes the code gets executed. it is a process in which it converts the Latin code to MR and executes it.

Hadoop

This is the main data that is being manipulated by the code above. this data can be of any bank or firm.

10 lines of Pig code = 200line of MR code

Does pig takes overhead time?

There is slight overhead time. this overhead is worth it because it is giving us productivity.

What is the difference between Hive and Pig?

818399eb5b1d7a595626283a93216302.png

Pig is developed by Yahoo whereas the Hive is developed by Facebook. Facebook is developing its own technologies every day which is also getting huge community support.

thankyou for reading :)