<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Hive error: java.io.EOFException: Unexpected end of input stream in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-error-java-io-EOFException-Unexpected-end-of-input/m-p/300329#M220157</link>
    <description>&lt;P&gt;Check for more details and got error as : "&lt;FONT color="#FF0000"&gt;Unexpected end of input stream&lt;/FONT&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, Get the hdfs&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;LOCATION&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for the table by using below command on HUE or HIVE&amp;nbsp;shell:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;show create table&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;FONT color="#FF9900"&gt;&amp;lt;table-name&amp;gt;&lt;/FONT&gt;&lt;/EM&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check for the zero byte size files and remove them from hdfs location using below command:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;hdfs dfs -rm -skipTrash $(hdfs dfs -ls -R&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF9900"&gt;&lt;EM&gt;&amp;lt;hdfs_location&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;| grep -v "^d" | awk '{if ($5 == 0) print $8}')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try running again our query which ran successfully this time.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jul 2020 14:39:43 GMT</pubDate>
    <dc:creator>DarveshK</dc:creator>
    <dc:date>2020-07-23T14:39:43Z</dc:date>
    <item>
      <title>Hive error: java.io.EOFException: Unexpected end of input stream</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-error-java-io-EOFException-Unexpected-end-of-input/m-p/147289#M109832</link>
      <description>&lt;P&gt;I am running an Hive query (my execution engine is Tez) on an external table with gz files. The error message i get is "&lt;STRONG&gt;&lt;EM&gt;java.io.EOFException: Unexpected end of input stream&lt;/EM&gt;&lt;/STRONG&gt;". I have done a check on HDFS for corrupt files and it returns a healthy status. Anyone come across a similar issue?&lt;/P&gt;&lt;PRE&gt;Caused by: java.io.EOFException: Unexpected end of input streamat org.apache.hadoop.io.compress.DecompressorStream.decompress(DecompressorStream.java:145)at org.apache.hadoop.io.compress.DecompressorStream.read(DecompressorStream.java:85)at java.io.InputStream.read(InputStream.java:101)at org.apache.hadoop.util.LineReader.fillBuffer(LineReader.java:180)at org.apache.hadoop.util.LineReader.readDefaultLine(LineReader.java:216)at org.apache.hadoop.util.LineReader.readLine(LineReader.java:174)at org.apache.hadoop.mapred.LineRecordReader.skipUtfByteOrderMark(LineRecordReader.java:208)at org.apache.hadoop.mapred.LineRecordReader.next(LineRecordReader.java:246)at org.apache.hadoop.mapred.LineRecordReader.next(LineRecordReader.java:48)at org.apache.hadoop.hive.ql.io.HiveContextAwareRecordReader.doNext(HiveContextAwareRecordReader.java:350)... 22 more

Vertex did not succeed due to OWN_TASK_FAILURE, failedTasks:1 killedTasks:90, Vertex vertex_1483105407610_10086_1_00&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jan 2017 17:54:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-error-java-io-EOFException-Unexpected-end-of-input/m-p/147289#M109832</guid>
      <dc:creator>joshua_adeleke</dc:creator>
      <dc:date>2017-01-26T17:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hive error: java.io.EOFException: Unexpected end of input stream</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-error-java-io-EOFException-Unexpected-end-of-input/m-p/147290#M109833</link>
      <description>&lt;P&gt;The issue was that some files with zero file size were causing the error. The zero-sized files were moved out and issue was resolved.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 19:52:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-error-java-io-EOFException-Unexpected-end-of-input/m-p/147290#M109833</guid>
      <dc:creator>joshua_adeleke</dc:creator>
      <dc:date>2017-01-26T19:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hive error: java.io.EOFException: Unexpected end of input stream</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-error-java-io-EOFException-Unexpected-end-of-input/m-p/300329#M220157</link>
      <description>&lt;P&gt;Check for more details and got error as : "&lt;FONT color="#FF0000"&gt;Unexpected end of input stream&lt;/FONT&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, Get the hdfs&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;LOCATION&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for the table by using below command on HUE or HIVE&amp;nbsp;shell:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;show create table&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;FONT color="#FF9900"&gt;&amp;lt;table-name&amp;gt;&lt;/FONT&gt;&lt;/EM&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check for the zero byte size files and remove them from hdfs location using below command:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;hdfs dfs -rm -skipTrash $(hdfs dfs -ls -R&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF9900"&gt;&lt;EM&gt;&amp;lt;hdfs_location&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;| grep -v "^d" | awk '{if ($5 == 0) print $8}')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try running again our query which ran successfully this time.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 14:39:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-error-java-io-EOFException-Unexpected-end-of-input/m-p/300329#M220157</guid>
      <dc:creator>DarveshK</dc:creator>
      <dc:date>2020-07-23T14:39:43Z</dc:date>
    </item>
  </channel>
</rss>

