pig -x local
A = LOAD '/home/admin/150214.CSV' USING PigStorage(';') AS (tag:int,zeit:chararray,username:chararray);
DESCRIBE A;
ILLUSTRATE A;
B = GROUP A BY username;
C = FOREACH B GENERATE group, COUNT(A.tag) as tag_count;
D = ORDER C BY tag_count;
STORE D INTO '/home/admin/user_count_sorted.txt' USING PigStorage();