Here's an example of doing what you want in oozie https://github.com/dbist/oozie/blob/master/apps/hcatalog/sample.pig
But to answer your question, you will need to register the whole hcatalog and Hive classpath, or execute your pig script from a shell script that gets the classpath programmatically. On Dec 3, 2015 4:39 AM, "mahender bigdata" <[email protected]> wrote: > > Hi, We would like to make use of HCatlog table in our PIG Script file, > Currently we are opening the PIG Command with -UseHCatlog option for > registering or loading HCatlog library. Is there a way in PIG script to > register HCatlog jar files and execute directly on pig command prompt > directly without any parameter options. Is this achievable ? > > /Mahender > >
