The pig script should be as easy as

hive_table = LOAD ‘a_table’ USING org.apache.hcatalog.pig.HCatLoader();
hive_column = FOREACH hive_table GENERATE a_column;

The trickier part could be the pig infrastructure. You can try just running the 
script with -useHCatalog. You may need to register the hcat jars, too.
 
David

On May 28, 2014 at 3:02:33 AM, Patcharee Thongtra ([email protected]) 
wrote:

Hi,  

I am very new to pig and hive. In pig, how can I execute this command  
'select a_column from a_table' through HCatalog? Any guidance is  
appreciated.  

Patcharee  

Reply via email to