, 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
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
: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
: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
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
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
10 matches
Mail list logo