Professional Documents
Culture Documents
grunt>
data = LOAD 'cloudera/hadoop/store_transactions.txt' using
PigStorage(',') as (person:chararray, dstores:chararray, spent:float);
dump grp;
( R,1,1.1)
( S,3,9.2)
( T,2,8.9)
( Z,1,1.1)
@Apache Pig Output on Grunt Shell: The output has customer id, total
transactions per customer, total sales.
(A,2,8.0)
(B,2,4.6000004)
(C,2,6.6)
(D,1,1.1)