Fwd: Help to solve UDAF errors!

2013-02-14 Thread Abhishek Bhattacharya
, 2013 at 7:20 PM Subject: Re: Help to solve UDAF errors! To: user@hive.apache.org Hi Robin, Thanks for the response. The point mentioned by you is one of the many other serious issues in the code. I have fixed all of them and it is pretty much in a good shape presently after some testing. You can

Re: Help to solve UDAF errors!

2013-02-13 Thread Abhishek Bhattacharya
s off the end of the array. > > Robin > > > From: Abhishek Bhattacharya > Reply-To: "user@hive.apache.org" > Date: Tuesday, February 12, 2013 10:29 AM > To: "user@hive.apache.org" > Subject: Fwd: Help to solve UDAF errors! > >Hi, > > I l

Re: Help to solve UDAF errors!

2013-02-13 Thread Robin Morris
:user@hive.apache.org>> Date: Tuesday, February 12, 2013 10:29 AM To: "user@hive.apache.org<mailto:user@hive.apache.org>" mailto:user@hive.apache.org>> Subject: Fwd: Help to solve UDAF errors! Hi, I looked through the syslogs and found the followin

Fwd: Help to solve UDAF errors!

2013-02-12 Thread Abhishek Bhattacharya
:14,049 INFO org.apache.hadoop.mapred.Task: Runnning cleanup for the task -- Thanks, Abhishek -- Forwarded message -- From: Abhishek Bhattacharya Date: Tue, Feb 12, 2013 at 12:48 PM Subject: Re: Help to solve UDAF errors! To: user@hive.apache.org Hi

Re: Help to solve UDAF errors!

2013-02-12 Thread Abhishek Bhattacharya
Hi Mark, Thanks for the response! The UDAFPercentile.java have two terminate() methods since it is handling two different input types by the two inner classes: PercentileLongEvaluator and PercentileLongArrayEvaluator. I am handling only a single input type of double from one table column to the it

Re: Help to solve UDAF errors!

2013-02-10 Thread Abhishek Bhattacharya
Hi Mark, Sorry for the preliminary questions since I am a beginner for Hive. I have read in both books (Hadoop Definitive Guide and Programming Hive) that we need to implement the functions: init(), iterate(), terminatePartial(), merge() and terminate for extending a UDAF and UDAFEvaluator class.

Re: Help to solve UDAF errors!

2013-02-10 Thread Mark Grover
Hi Abhishek, The code looks incomplete. See the comment at https://github.com/apache/hive/blob/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/UDAF.java#L22 Those are all the methods your UDAF class needs to implement but you seem to be missing them. Mark On Sat, Feb 9, 2013 at 11:08 PM, Abhish

Re: Help to solve UDAF errors!

2013-02-09 Thread Abhishek Bhattacharya
Thanks for the response. The link to the code is: https://github.com/Abhishek2301/Hive/blob/master/src/UDAFTopNPercent.java Please let me know to fix it! Thanks, Abhishek On Fri, Feb 8, 2013 at 5:02 PM, Mark Grover wrote: > Abhishek, > The code doesn't seem to be complete. > > Look at > https:

Re: Help to solve UDAF errors!

2013-02-08 Thread Mark Grover
Abhishek, The code doesn't seem to be complete. Look at https://github.com/apache/hive/blob/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDAFPercentile.javafor reference. It has two terminate()'s - one for UDAF and one for the Evaluator. Do you mind posting your complete code on github somewhe

Help to solve UDAF errors!

2013-02-08 Thread Abhishek Bhattacharya
Hi, I have implemented a simple UDAF for top-n-percent as follows: import java.util.ArrayList; import java.util.Collections; import org.apache.hadoop.hive.ql.exec.UDAF; import org.apache.hadoop.hive.ql.exec.UDAFEvaluator; public class UDAFTopNPercent extends UDAF{ public static class Result