You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by 唐亮 <le...@gmail.com> on 2011/11/25 04:28:45 UTC

How to set job name in pig script?

Dear pigs:
  How can I set job name in pig script, especially in command line.

  Thanks!

Re: How to set job name in pig script?

Posted by Wojciech Langiewicz <wl...@gmail.com>.
Hi, this probably doesn't work when using pig in interactive mode,
Try running this script from file using command:

pig file_name

On 27.11.2011 09:16, 唐亮 wrote:
> Unfortunately, it doesn.t work!
> 
> In console, I wrote as below:
> grunt>  set job.name 'aaa'
> grunt>  load ...
> grunt>  dump ...
> 
> But, from JobTracker, the "Name" is "Job984197355248854142.jar", but not
> "aaa".
> How can I set the job' s name in JobTracker?
> 
> 
> 2011/11/25 Prashant Kommireddi<pr...@gmail.com>
> 
>> I am not a Pig, but this is how it can be done!
>>
>> set job.name 'FOOBAR'
>>
>> On Thu, Nov 24, 2011 at 7:28 PM, 唐亮<le...@gmail.com>  wrote:
>>
>>> Dear pigs:
>>>   How can I set job name in pig script, especially in command line.
>>>
>>>   Thanks!
>>>
>>
> 


Re: How to set job name in pig script?

Posted by 唐亮 <le...@gmail.com>.
Unfortunately, it doesn.t work!

In console, I wrote as below:
grunt> set job.name 'aaa'
grunt> load ...
grunt> dump ...

But, from JobTracker, the "Name" is "Job984197355248854142.jar", but not
"aaa".
How can I set the job' s name in JobTracker?


2011/11/25 Prashant Kommireddi <pr...@gmail.com>

> I am not a Pig, but this is how it can be done!
>
> set job.name 'FOOBAR'
>
> On Thu, Nov 24, 2011 at 7:28 PM, 唐亮 <le...@gmail.com> wrote:
>
> > Dear pigs:
> >  How can I set job name in pig script, especially in command line.
> >
> >  Thanks!
> >
>

Re: How to set job name in pig script?

Posted by Prashant Kommireddi <pr...@gmail.com>.
I am not a Pig, but this is how it can be done!

set job.name 'FOOBAR'

On Thu, Nov 24, 2011 at 7:28 PM, 唐亮 <le...@gmail.com> wrote:

> Dear pigs:
>  How can I set job name in pig script, especially in command line.
>
>  Thanks!
>