<?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: java.io.EOFException: Reached the end of stream with 340 bytes left to read in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/java-io-EOFException-Reached-the-end-of-stream-with-340/m-p/391812#M247789</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/112845"&gt;@zhaiziha&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our Hive / CDP experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70785"&gt;@Shmoo&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/13587"&gt;@venkatsambath&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/12885"&gt;@mszurap&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Aug 2024 20:15:23 GMT</pubDate>
    <dc:creator>DianaTorres</dc:creator>
    <dc:date>2024-08-16T20:15:23Z</dc:date>
    <item>
      <title>java.io.EOFException: Reached the end of stream with 340 bytes left to read</title>
      <link>https://community.cloudera.com/t5/Support-Questions/java-io-EOFException-Reached-the-end-of-stream-with-340/m-p/391803#M247780</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I use following in my cdp cluster. While I create a simple parquet table from Hue and store it in external table on s3 express bucket, it shows 'EOFException'.&lt;/P&gt;&lt;P&gt;1. Hive 3.1.3000.7.2.18.200-39, Hadoop 3.1.1.7.2.18.200-39&lt;/P&gt;&lt;P&gt;2. Data hub CM version &lt;SPAN&gt;7.12.0.200, CM runtime version: 7.2.18-1.cdh7.2.18.p200.54625612&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have tried following setting but didn't help. Could anyone help here? Thank you.&lt;/P&gt;&lt;P&gt;1. Data cluster -&amp;gt; CM -&amp;gt; hdfs -&amp;gt; add&amp;nbsp;&lt;STRONG&gt;fs.s3a.experimental.input.fadvise=sequential&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;Data cluster -&amp;gt; CM -&amp;gt; spark3_on_yarn -&amp;gt; &lt;STRONG&gt;add&amp;nbsp;spark.sql.parquet.enableVectorizedReader=false&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;INFO  : Compiling command(queryId=hive_20240816153040_ebe87870-3c90-4f07-84dc-b2b6e354520c): select * from small
INFO  : Semantic Analysis Completed (retrial = false)
INFO  : Created Hive schema: Schema(fieldSchemas:[FieldSchema(name:small.id, type:string, comment:null)], properties:null)
INFO  : Completed compiling command(queryId=hive_20240816153040_ebe87870-3c90-4f07-84dc-b2b6e354520c); Time taken: 0.173 seconds
INFO  : Executing command(queryId=hive_20240816153040_ebe87870-3c90-4f07-84dc-b2b6e354520c): select * from small
INFO  : Completed executing command(queryId=hive_20240816153040_ebe87870-3c90-4f07-84dc-b2b6e354520c); Time taken: 0.009 seconds
INFO  : OK
ERROR : Failed with exception java.io.IOException:java.io.EOFException: Reached the end of stream with 340 bytes left to read
java.io.IOException: java.io.EOFException: Reached the end of stream with 340 bytes left to read
	at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:642)
	at org.apache.hadoop.hive.ql.exec.FetchOperator.pushRow(FetchOperator.java:549)
	at org.apache.hadoop.hive.ql.exec.FetchTask.executeInner(FetchTask.java:217)
	at org.apache.hadoop.hive.ql.exec.FetchTask.execute(FetchTask.java:114)
	at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:820)
	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:550)
	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:544)
	at org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:190)
	at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:235)
	at org.apache.hive.service.cli.operation.SQLOperation.access$700(SQLOperation.java:92)
	at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQLOperation.java:340)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:422)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1899)
	at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLOperation.java:360)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:750)
Caused by: java.io.EOFException: Reached the end of stream with 340 bytes left to read
	at org.apache.parquet.io.DelegatingSeekableInputStream.readFully(DelegatingSeekableInputStream.java:104)
	at org.apache.parquet.io.DelegatingSeekableInputStream.readFullyHeapBuffer(DelegatingSeekableInputStream.java:127)
	at org.apache.parquet.io.DelegatingSeekableInputStream.readFully(DelegatingSeekableInputStream.java:91)
	at org.apache.parquet.hadoop.ParquetFileReader.readFooter(ParquetFileReader.java:584)
	at org.apache.parquet.hadoop.ParquetFileReader.readFooter(ParquetFileReader.java:536)
	at org.apache.parquet.hadoop.ParquetFileReader.readFooter(ParquetFileReader.java:530)
	at org.apache.parquet.hadoop.ParquetFileReader.readFooter(ParquetFileReader.java:478)
	at org.apache.parquet.hadoop.ParquetFileReader.readFooter(ParquetFileReader.java:462)
	at org.apache.hadoop.hive.ql.io.parquet.ParquetRecordReaderBase.getParquetMetadata(ParquetRecordReaderBase.java:181)
	at org.apache.hadoop.hive.ql.io.parquet.ParquetRecordReaderBase.setupMetadataAndParquetSplit(ParquetRecordReaderBase.java:87)
	at org.apache.hadoop.hive.ql.io.parquet.read.ParquetRecordReaderWrapper.&amp;lt;init&amp;gt;(ParquetRecordReaderWrapper.java:59)
	at org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat.getRecordReader(MapredParquetInputFormat.java:93)
	at org.apache.hadoop.hive.ql.exec.FetchOperator$FetchInputFormatSplit.getRecordReader(FetchOperator.java:789)
	at org.apache.hadoop.hive.ql.exec.FetchOperator.getRecordReader(FetchOperator.java:353)
	at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:580)
	... 21 more&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 15:54:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/java-io-EOFException-Reached-the-end-of-stream-with-340/m-p/391803#M247780</guid>
      <dc:creator>zhaiziha</dc:creator>
      <dc:date>2024-08-16T15:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: java.io.EOFException: Reached the end of stream with 340 bytes left to read</title>
      <link>https://community.cloudera.com/t5/Support-Questions/java-io-EOFException-Reached-the-end-of-stream-with-340/m-p/391812#M247789</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/112845"&gt;@zhaiziha&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our Hive / CDP experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70785"&gt;@Shmoo&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/13587"&gt;@venkatsambath&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/12885"&gt;@mszurap&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 20:15:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/java-io-EOFException-Reached-the-end-of-stream-with-340/m-p/391812#M247789</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-08-16T20:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: java.io.EOFException: Reached the end of stream with 340 bytes left to read</title>
      <link>https://community.cloudera.com/t5/Support-Questions/java-io-EOFException-Reached-the-end-of-stream-with-340/m-p/391814#M247791</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/112845"&gt;@zhaiziha&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you running this query on DataHub or Hive VW?&lt;BR /&gt;Please try your SELECT statement on Beeline from DataHub as follows and let us know how it works for you&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;SET hive.server2.logging.operation.level=VERBOSE;&lt;BR /&gt;SET hive.input.format = org.apache.hadoop.hive.ql.io.HiveInputFormat;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;SET fs.s3a.experimental.input.fadvise=random;&lt;BR /&gt;SET &lt;/SPAN&gt;fs.s3a.readahead.range=1024K;&lt;BR /&gt;&lt;SPAN&gt;SET parquet.enable.dictionary=false;&lt;BR /&gt;&lt;/SPAN&gt;SELECT * FROM small;&lt;/PRE&gt;&lt;P&gt;Should that fail, can you provide the beeline output and simple repro steps?&lt;BR /&gt;Seems like some form of&amp;nbsp;HADOOP-16109&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 21:12:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/java-io-EOFException-Reached-the-end-of-stream-with-340/m-p/391814#M247791</guid>
      <dc:creator>JoseManuel</dc:creator>
      <dc:date>2024-08-16T21:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: java.io.EOFException: Reached the end of stream with 340 bytes left to read</title>
      <link>https://community.cloudera.com/t5/Support-Questions/java-io-EOFException-Reached-the-end-of-stream-with-340/m-p/392457#M248132</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/112845"&gt;@zhaiziha&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 17:21:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/java-io-EOFException-Reached-the-end-of-stream-with-340/m-p/392457#M248132</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-08-23T17:21:54Z</dc:date>
    </item>
  </channel>
</rss>

