You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Guy Bayes <fa...@gmail.com> on 2010/01/17 04:49:56 UTC

map.input.file from pig?

Is there any way to retrieve job parameters and task execution / environment
variables from inside a pig script?

I'm trying to grab the name of the file I am processing using map.input.file


thanks
Guy

Re: map.input.file from pig?

Posted by Jeff Zhang <zj...@gmail.com>.
Hi Guy,

There's one jira Pig-966
<https://issues.apache.org/jira/browse/PIG-966>which try to integrate
hadoop's InputFormat and OutputFormat to pig. I think
after this jira is completed, you can get the name of file by getting
parameter map.input.file from Configuration in your UDF. But now I don't
think you can do that.


On Sat, Jan 16, 2010 at 7:49 PM, Guy Bayes <fa...@gmail.com> wrote:

> Is there any way to retrieve job parameters and task execution /
> environment
> variables from inside a pig script?
>
> I'm trying to grab the name of the file I am processing using
> map.input.file
>
>
> thanks
> Guy
>



-- 
Best Regards

Jeff Zhang