You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by mahender bigdata <Ma...@outlook.com> on 2015/12/03 10:39:38 UTC

Fwd: How to register HCatlog Library as part of pig script file

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


Re: Fwd: How to register HCatlog Library as part of pig script file

Posted by Artem Ervits <db...@gmail.com>.
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" <Ma...@outlook.com>
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
>
>