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 <billgra...@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 
> <prash1...@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 <quaintena...@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
>> 

Reply via email to