Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> Counters from Python UDF


Copy link to this message
-
Re: Counters from Python UDF
In trunk this should be possible (it's possible in 0.10 as well, I just am
not sure if PigCountersHelper is there). Either way, take a look at
PigCountersHelper. All you have to do is instantiate a copy in your UDF and
use it from there.

This hinges on all of the static stuff that Pig relies on working... I
think that the way that we invoke these scripting languages should work,
but this will verify that :)

2012/8/23 Duckworth, Will <[EMAIL PROTECTED]>

> This may be a better question for the DEV list but ... Is it even possible
> / feasible.  Could it be done by calling the Java classes from within
> Jython?
>
> I guess I would ask the same about algebraic and accumulator UDF which I
> know are available in Ruby.
>
> -----Original Message-----
> From: Aniket Mokashi [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 17, 2012 5:54 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Counters from Python UDF
>
> I dont think there is a way at this point. You may have to open a jira.
>
> Thanks,
> Aniket
>
> On Fri, Aug 17, 2012 at 7:03 AM, Duckworth, Will <[EMAIL PROTECTED]
> >wrote:
>
> > Has anyone poked around to see if there is there a way to create /
> > increment counters from a Python UDFs?  Thanks.
> >
> >
> >
> > Will Duckworth Senior Vice President, Software Engineering | comScore,
> > Inc. (NASDAQ:SCOR)
> >
> > o +1 (703) 438-2108 | m +1 (301) 606-2977 | [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>
> >
> >
> >
> ...........................................................................................................
> >
> > Introducing Mobile Metrix 2.0 - The next generation of mobile
> > behavioral measurement www.comscore.com/MobileMetrix<
> > http://www.comscore.com/Products_Services/Product_Index/Mobile_Metrix_
> > 2.0>
> >
> >
> >
>
>
> --
> "...:::Aniket:::... Quetzalco@tl"
>