Query Hive table from Pig – using HCatalog

By | September 3, 2014
Querying hive table from PIG using HCatalog


$cat hcatScript.pig
A = LOAD 'db1.tablename' USING org.apache.hcatalog.pig.HCatLoader();
B = LIMIT A 10;
dump B;

$pig -useHCatalog -f hcatScript.pig

Comment below if you find this blog useful.

Leave a Reply

Your email address will not be published. Required fields are marked *