What about the count or max?
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDAFCount.java
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDAFMax.java

I've not used UDAFs, but I only got my UDTFs working by looking at the
examples in the Hive SVN itself.

HTH,
Tim


On Wed, Dec 8, 2010 at 3:27 PM, Leo Alekseyev <dnqu...@gmail.com> wrote:
> I am trying to write a very simple aggregation function which seems
> like an overkill for using GenericUDAF as described on the wiki.
> However, I can't get the code to run.  It always throws an exception
> of the form
>
> java.lang.ClassNotFoundException:
> com.hadoopbook.hive.Maximum$MaximumIntUDAFEvaluator
>
> (As you can see, even the sample code from Tom White's Hadoop book --
> the only sample code I found -- doesn't work.)  I'm using the standard
> add jar and create temporary function statements...
>
> --Leo
>

Reply via email to