Join Multiple Relations by Different Fields
问题 Say I have three files data1 , data2 and assocs : $ cat data1 key1,foo key2,bar $ cat data2 key3,braz key4,froz $ cat assoc key1,key3 key2,key4 I load these files via $ pig -b -p debug=WARN -x local Warning: $HADOOP_HOME is deprecated. Apache Pig version 0.10.0 (r1328203) compiled Apr 19 2012, 22:54:12 Logging error messages to: /home/vince/tmp/pig_1355407390166.log Connecting to hadoop file system at: file:/// grunt> data1 = load 'data1' using PigStorage(',') as (key: chararray, val: