Skip to content

Instantly share code, notes, and snippets.

@sankars
Created March 19, 2013 14:32
Show Gist options
  • Save sankars/5196613 to your computer and use it in GitHub Desktop.
Save sankars/5196613 to your computer and use it in GitHub Desktop.
Pig script to fetch data from hbase
a = LOAD 'hbase://Customer' using org.apache.pig.backend.hadoop.hbase.HBaseStorage('D:N','-loadKey=true') as (key:chararray,name:chararray);
b = order a by name parallel 1;
dump b;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment