[ 
https://issues.apache.org/jira/browse/HIVE-8688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14192984#comment-14192984
 ] 

Thejas M Nair commented on HIVE-8688:
-------------------------------------

I found this issue while trying to find the cause of the failure. I am not sure 
if this fixes the following issue, because its hard to reproduce.

{code}
Error: java.lang.RuntimeException: 
org.apache.hive.com.esotericsoftware.kryo.KryoException: Buffer underflow.
        at 
org.apache.hadoop.hive.ql.exec.Utilities.getBaseWork(Utilities.java:422)
        at 
org.apache.hadoop.hive.ql.exec.Utilities.getMapWork(Utilities.java:285)
        at 
org.apache.hadoop.hive.ql.io.HiveInputFormat.init(HiveInputFormat.java:263)
        at 
org.apache.hadoop.hive.ql.io.HiveInputFormat.pushProjectionsAndFilters(HiveInputFormat.java:475)
        at 
org.apache.hadoop.hive.ql.io.HiveInputFormat.pushProjectionsAndFilters(HiveInputFormat.java:468)
        at 
org.apache.hadoop.hive.ql.io.CombineHiveInputFormat.getRecordReader(CombineHiveInputFormat.java:648)
        at 
org.apache.hadoop.mapred.MapTask$TrackedRecordReader.<init>(MapTask.java:169)
        at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:429)
        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:343)
        at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:163)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:415)
        at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1614)
        at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)
Caused by: org.apache.hive.com.esotericsoftware.kryo.KryoException: Buffer 
underflow.
        at 
org.apache.hive.com.esotericsoftware.kryo.io.Input.require(Input.java:181)
        at 
org.apache.hive.com.esotericsoftware.kryo.io.Input.readVarInt(Input.java:355)
        at 
org.apache.hive.com.esotericsoftware.kryo.Kryo.readReferenceOrNull(Kryo.java:809)
        at 
org.apache.hive.com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:670)
        at 
org.apache.hadoop.hive.ql.exec.Utilities.deserializeObjectByKryo(Utilities.java:1023)
        at 
org.apache.hadoop.hive.ql.exec.Utilities.deserializePlan(Utilities.java:931)
        at 
org.apache.hadoop.hive.ql.exec.Utilities.deserializePlan(Utilities.java:945)
        at 
org.apache.hadoop.hive.ql.exec.Utilities.getBaseWork(Utilities.java:389)
        ... 13 more
{code}

> serialized plan OutputStream is not being closed
> ------------------------------------------------
>
>                 Key: HIVE-8688
>                 URL: https://issues.apache.org/jira/browse/HIVE-8688
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>            Priority: Critical
>             Fix For: 0.14.0
>
>         Attachments: HIVE-8688.1.patch
>
>
> The OutputStream to which serialized plan is not being closed in several 
> places.
> This can result in plan not getting written correctly.
> I have seen intermittent issues in deserializing the plan, and I think this 
> could be the/a cause.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to