hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Romanoff (JIRA)" <>
Subject [jira] [Commented] (HIVE-5279) Kryo cannot instantiate GenericUDAFEvaluator in GroupByDesc
Date Tue, 17 Sep 2013 21:23:53 GMT


Leo Romanoff commented on HIVE-5279:

Regarding the issue with Kryo's exception about no-arg constructor:
Please read this section:

Basically, you can force Kryo to create objects without invoking any constructor at all, but
you should be careful with it and your class should be written in such a way that it can handle

> Kryo cannot instantiate GenericUDAFEvaluator in GroupByDesc
> -----------------------------------------------------------
>                 Key: HIVE-5279
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Critical
>         Attachments: 5279.patch, D12963.1.patch, D12963.2.patch, D12963.3.patch
> We didn't forced GenericUDAFEvaluator to be Serializable. I don't know how previous serialization
mechanism solved this but, kryo complaints that it's not Serializable and fails the query.
> The log below is the example, 
> {noformat}
> java.lang.RuntimeException: com.esotericsoftware.kryo.KryoException: Class cannot be
created (missing no-arg constructor): org.apache.hadoop.hive.serde2.objectinspector.StandardListObjectInspector
> Serialization trace:
> inputOI (org.apache.hadoop.hive.ql.udf.generic.GenericUDAFGroupOn$VersionedFloatGroupOnEval)
> genericUDAFEvaluator (org.apache.hadoop.hive.ql.plan.AggregationDesc)
> aggregators (org.apache.hadoop.hive.ql.plan.GroupByDesc)
> conf (org.apache.hadoop.hive.ql.exec.GroupByOperator)
> childOperators (org.apache.hadoop.hive.ql.exec.SelectOperator)
> childOperators (org.apache.hadoop.hive.ql.exec.TableScanOperator)
> aliasToWork (org.apache.hadoop.hive.ql.plan.MapWork)
> 	at org.apache.hadoop.hive.ql.exec.Utilities.getBaseWork(
> 	at org.apache.hadoop.hive.ql.exec.Utilities.getMapWork(
> 	at
> 	at
> 	at org.apache.h
> {noformat}
> If this cannot be fixed in somehow, some UDAFs should be modified to be run on hive-0.13.0

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message