Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Can't run pigscript using HCatalog

Can't run pigscript using HCatalog

New Contributor

I'm trying to run follow pigscript:
A = LOAD 'hdfs:///hbase/dataSep.csv' USING PigStorage('\t') AS (client, goods);
STORE A INTO 'sales_simple' USING org.apache.hcatalog.pig.HCatStore();

via command line:
pig -useHCatalog /tmp/import.pig   


And see follow error:
Caused by: org.apache.pig.backend.executionengine.ExecException: ERROR 1070: Could not resolve org.apache.hcatalog.pig.HCatStore using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.]


Re: Can't run pigscript using HCatalog

Cloudera Employee



 Please try the following for your STORE command:


STORE A INTO 'sales_simple' USING org.apache.hive.hcatalog.pig.HCatStore();


There was a change in the packaging that went into effect from CDH-5.3 upwards.