Grokbase Groups Pig user July 2009
FAQ
Hi all,



Today, I found there’s a way to set the job name for your pig script.



PigServer pig=*new* PigServer(ExecType.*MAPREDUCE*);

pig.getPigContext().getProperties().setProperty(*PigContext*.*JOB_NAME*,
"pig-example-job");





This is useful when you share cluster with other people, or you want to
submit more than one scripts to cluster. Providing job name can help you
monitor your job in jobtracker easier.

Hope this is useful for you.







Best Regards,



Jeff Zhang

Search Discussions

  • Sean Timm at Jul 9, 2009 at 1:46 pm
    Or in piglatin
    set job.name 'pig-example-job';

    zhang jianfeng wrote:
    Hi all,



    Today, I found there’s a way to set the job name for your pig script.



    PigServer pig=*new* PigServer(ExecType.*MAPREDUCE*);

    pig.getPigContext().getProperties().setProperty(*PigContext*.*JOB_NAME*,
    "pig-example-job");





    This is useful when you share cluster with other people, or you want to
    submit more than one scripts to cluster. Providing job name can help you
    monitor your job in jobtracker easier.

    Hope this is useful for you.







    Best Regards,



    Jeff Zhang

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
categoriespig, hadoop
postedJul 9, '09 at 1:22a
activeJul 9, '09 at 1:46p
posts2
users2
websitepig.apache.org

2 users in discussion

Zhang jianfeng: 1 post Sean Timm: 1 post

People

Translate

site design / logo © 2021 Grokbase