lmt = limit data 10;
a = load ‘a.txt‘; b = group a all; c = foreach b generate COUNT(a) as sum; d = order a by $0; e = limit d c.sum/100;
Pig limit用法举例
原文:http://www.cnblogs.com/lishouguang/p/4559604.html