You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Jeff Yuan <qu...@gmail.com> on 2013/04/16 01:25:02 UTC
Setting pig job name
Hi guys,
This is probably just a quick answer, but how do I set the pig job
name? I'm generating Pig jobs in Java, and each job has the name
"PigLatin:DefaultJobName" in the hadoop tracker. How can I change it?
Or is there an easy way to generate a more useful name (in Hive, the
default job name is based on the actual query)?
Thanks,
Jeff
Re: Setting pig job name
Posted by Dmitriy Ryaboy <dv...@gmail.com>.
Also, if you run the pig job from a script rather than from the grunt shell, the name is the name of the script (so, "pig foo.pig" names spawned jobs foo.pig)
On Apr 15, 2013, at 5:50 PM, Bill Graham <bi...@gmail.com> wrote:
> You can do this in your script as well:
>
> SET job.name 'my job';
>
>
>
>
> On Mon, Apr 15, 2013 at 4:27 PM, Prashant Kommireddi <pr...@gmail.com>wrote:
>
>> You can use
>>
>> http://pig.apache.org/docs/r0.11.1/api/org/apache/pig/PigServer.html#setJobName(java.lang.String)
>>
>> Sent from my iPhone
>>
>> On Apr 15, 2013, at 4:25 PM, Jeff Yuan <qu...@gmail.com> wrote:
>>
>> Hi guys,
>>
>> This is probably just a quick answer, but how do I set the pig job
>> name? I'm generating Pig jobs in Java, and each job has the name
>> "PigLatin:DefaultJobName" in the hadoop tracker. How can I change it?
>> Or is there an easy way to generate a more useful name (in Hive, the
>> default job name is based on the actual query)?
>>
>> Thanks,
>> Jeff
>>
Re: Setting pig job name
Posted by Bill Graham <bi...@gmail.com>.
You can do this in your script as well:
SET job.name 'my job';
On Mon, Apr 15, 2013 at 4:27 PM, Prashant Kommireddi <pr...@gmail.com>wrote:
> You can use
>
> http://pig.apache.org/docs/r0.11.1/api/org/apache/pig/PigServer.html#setJobName(java.lang.String)
>
> Sent from my iPhone
>
> On Apr 15, 2013, at 4:25 PM, Jeff Yuan <qu...@gmail.com> wrote:
>
> Hi guys,
>
> This is probably just a quick answer, but how do I set the pig job
> name? I'm generating Pig jobs in Java, and each job has the name
> "PigLatin:DefaultJobName" in the hadoop tracker. How can I change it?
> Or is there an easy way to generate a more useful name (in Hive, the
> default job name is based on the actual query)?
>
> Thanks,
> Jeff
>
Re: Setting pig job name
Posted by Prashant Kommireddi <pr...@gmail.com>.
You can use
http://pig.apache.org/docs/r0.11.1/api/org/apache/pig/PigServer.html#setJobName(java.lang.String)
Sent from my iPhone
On Apr 15, 2013, at 4:25 PM, Jeff Yuan <qu...@gmail.com> wrote:
Hi guys,
This is probably just a quick answer, but how do I set the pig job
name? I'm generating Pig jobs in Java, and each job has the name
"PigLatin:DefaultJobName" in the hadoop tracker. How can I change it?
Or is there an easy way to generate a more useful name (in Hive, the
default job name is based on the actual query)?
Thanks,
Jeff