Skip to content

Instantly share code, notes, and snippets.

@0xh3x
Created September 21, 2011 18:43
Show Gist options
  • Save 0xh3x/1232942 to your computer and use it in GitHub Desktop.
Save 0xh3x/1232942 to your computer and use it in GitHub Desktop.
pig
grunt> raw = LOAD '/user/kadata-output/part-r-00000' USING PigStorage('\t') AS (word:chararray, cnt:int);
grunt> raw_ordered = ORDER raw BY cnt DESC, word;
grunt> STORE raw_ordered INTO '/user/kadata-output-sorted' USING PigStorage();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment