$ nano porder.txt
检查插入到文本文件中的元组。
$ cat porder.txt
上传特定目录下 HDFS 上的文本文件。
$ hdfs dfs-put porder.txt /pigexample
$ pig
grunt> A = LOAD '/pigexample/porder.txt' USING PigStorage(',') AS (a1:int,a2:int,a3:int) ;
grunt> DUMP A;
让我们返回前两个元组。
grunt> Result = ORDER A BY a1 DESC; grunt> DUMP Result;
