0 votes
in Hive by

How is Apache Pig different from MapReduce?

1 Answer

0 votes
by

Pig

MapReduce

It has fewer lines of code compared to MapReduce.

A high-level language that can easily perform join operation.

On execution, every Pig operator is converted internally into a MapReduce job

Works with all versions of Hadoop

Has more lines of code.

A low-level language that cannot perform join operation easily.

MapReduce jobs take more time to compile.

A MapReduce program written in one Hadoop version may not work with other versions

...