Hi Panshul,

1. The Pig script has to be in HDFS.  The Oozie server nor the map reduce
job it launches won't have access to your local machine to pick up the
script.

2. I'm guessing you want a way for your Oozie workflow to automatically
upload the script from your local machine to HDFS before the Pig action?
 The simplest way to do something like this is probably using a shell
script (not an Oozie action) that uploads the Pig script to HDFS using the
coppyfromlocal command and then submits the Oozie job.

3. If you're using Hue, I believe it will ask you for the Pig script (in
HDFS) when you create a Pig action in your workflow; so you'd have to have
it already in HDFS anyway.  You may want to re-ask this question in the Hue
user mailing list to get a better answer.


- Robert




On Thu, Mar 28, 2013 at 5:35 AM, Panshul Whisper <[email protected]>wrote:

> Hello,
>
> sorry for a novice question, but I have the following question:
>
> 1. How do I give a pig script file to a workflow if the file is stored on
> the local filesystem.
> 2. If i need to perform a copyfomlocal before i execute the pig script,
> what action type should I use? Please give an example if possible.
> 3. I am using CDH4 Hue interface for creating workflow. Any pointers with
> that perspective will also help.
>
> Thanking You,
> --
> Regards,
> Ouch Whisper
> 010101010101
>

Reply via email to