e.udaf.groupby.UDAFTopNPercent$TopNPercentEvaluator.()
> at java.lang.Class.getConstructor0(Class.java:2706)
> at java.lang.Class.getDeclaredConstructor(Class.java:1985)
> at
> org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:109)
> ... 37 m
for the task
Thanks,
Abhishek
-- Forwarded message --
From: Abhishek Bhattacharya mailto:abhat...@fiu.edu>>
Date: Tue, Feb 12, 2013 at 12:48 PM
Subject: Re: Help to solve UDAF errors!
To: user@hive.apache.org<mailto:user@hive.apache.org>
Hi Mark,
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
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.
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
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:
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