Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
0.7.0, 0.8.1
-
None
-
Docs
Description
The Documentation regarding merge join in pig is a bit off.
http://pig.apache.org/docs/r0.7.0/piglatin_ref1.html#Merge+Joins
"For optimal performance, each part file of the left (sorted) input of the join should have a size of at least 1 hdfs block size (for example if the hdfs block size is 128 MB, each part file should be less than 128 MB). If the total input size (including all part files) is greater than blocksize, then the part files should be uniform in size (without large skews in sizes)."
This is confusing and should read something more akin to this:
http://wiki.apache.org/pig/PigMergeJoin
For optimal performance, each part file of the left (sorted) input of the join should have a size of at least 1 hdfs block size (for example if the hdfs block size is 128 MB, each part file should be > 128 MB). If the total input size (including all part files) is < a blocksize, then the part files should be uniform in size (without large skews in sizes). The main idea is to eliminate skew in the amount of input the final map job performing the merge-join will process.