some = sample data 0.1
data = load ‘data‘; grpd = group data all; sums = foreach grpd generate COUNT(data) as c; some = sample data 100/(double)sums.c;
Pig sample用法举例
原文:http://www.cnblogs.com/lishouguang/p/4559607.html