Hello All, I second this question. I have a MS SQL "rank" function which I would like to run, the results it gives appears to suggest it is executed Mapper side as opposed to reducer side, even when run with "cluster by" constraints.
-Justin On Thu, Apr 19, 2012 at 1:21 AM, Ranjan Bagchi <ran...@powerreviews.com>wrote: > Hi, > > What's the lifecycle of a hive udf. If I call > > select MyUDF(field1,field2) from table; > > Then MyUDF is instantiated once per mapper, and within each mapper > execute(field1, field2) is called for each reducer? I hope this is the > case, but I can't find anything about this in the documentation. > > So I'd like to have some run-time configuration of my UDF: I'm curious > how people do this. Is there a way I can send it a value or have it access > a file, etc? How about performing a query against the hive store? > > Thanks, > > Ranjan > > -- jqcof...@gmail.com -----