Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> Setting pig job name


Copy link to this message
-
Re: Setting pig job name
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 <[EMAIL PROTECTED]>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 <[EMAIL PROTECTED]> 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
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB