[
https://issues.apache.org/jira/browse/HIVE-1686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12916964#action_12916964
]
Stephen Watt commented on HIVE-1686:
------------------------------------
To resolve this issue, I have provided a patch that has added a variety of
enumPersistenceDelegates for the classes throwing this Exception to the
XMLEncoder in org.apache.hadoop.hive.ql.exec.Utilities.serializeMapRedWork()
> XMLEncoder failing to serialize classes containing Enums for non-SUN JREs
> -------------------------------------------------------------------------
>
> Key: HIVE-1686
> URL: https://issues.apache.org/jira/browse/HIVE-1686
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Serializers/Deserializers
> Affects Versions: 0.5.0
> Environment: SLES 10 SP2, IBM Java 1.6 SR8
> Reporter: Stephen Watt
> Priority: Minor
> Fix For: 0.5.1
>
> Attachments: HIVE-1686.patch
>
>
> If one is using Hive 0.5 with IBM Java 1.6 certain Hive Queries will fail in
> the Hive CLI, such as "SELECT Count(1) from TABLE" with the error "failed to
> write expression: GenericUDAFEvaluator$Mode=Class.new()". This is due to the
> fact that XMLEncoder in the JRE's beans.jar is not able to serialize Classes
> with Enums without an explicitly having an EnumPersistenceDelegate assigned
> to each class that needs to be serialized. This was an issue in SUN JDK 1.5
> but not 1.6 and is still an issue in IBM Java 1.6.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.