You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@oozie.apache.org by Jakub Stransky <st...@gmail.com> on 2014/10/15 13:14:00 UTC

Run a pig script from a oozie as a java activity

Hello experienced users,

I have a pig script where I need dynamically change input parameters e.g.
input paths and for every single combination I need to submit a pig
script.  Esentially  I am walking around missing features of loops or for
cycles. The only solution which came to my mind is put the whole dynamic
logic in java activity just need to fine a way how to submit a pig script
from java.

Could someone please point me to right direction?

Many thanks
Jakub

Re: Run a pig script from a oozie as a java activity

Posted by Paul Han <pa...@gmail.com>.
The alternative is to creat new workflows or summit workflow with different parameters programmatically via Oozie API.

The book from Boris, Kevin and Alexy is very helpful on this regard.
http://www.amazon.com/gp/aw/d/1118611934?pc_redir=1412276107&robot_redir=1#

Thanks,
Paul

> On Oct 15, 2014, at 4:14, Jakub Stransky <st...@gmail.com> wrote:
> 
> Hello experienced users,
> 
> I have a pig script where I need dynamically change input parameters e.g.
> input paths and for every single combination I need to submit a pig
> script.  Esentially  I am walking around missing features of loops or for
> cycles. The only solution which came to my mind is put the whole dynamic
> logic in java activity just need to fine a way how to submit a pig script
> from java.
> 
> Could someone please point me to right direction?
> 
> Many thanks
> Jakub