<?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: Tez IndexOutOfBoundsException in select distinct in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-IndexOutOfBoundsException-in-select-distinct/m-p/153847#M20589</link>
    <description>&lt;P&gt;This looks awfully like an HDFS bug and entirely unrelated to Tez.

The IndexOutOfBounds is thrown from HDFS block local readers.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Feb 2016 10:02:54 GMT</pubDate>
    <dc:creator>gopalv</dc:creator>
    <dc:date>2016-02-24T10:02:54Z</dc:date>
    <item>
      <title>Tez IndexOutOfBoundsException in select distinct</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-IndexOutOfBoundsException-in-select-distinct/m-p/153846#M20588</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I get an java.lang.IndexOutOfBoundsException while trying to execute a select distinct(...) on a big hive table (about 60 GB).&lt;/P&gt;&lt;P&gt;This is the log of the Tez vertex:&lt;/P&gt;&lt;PRE&gt;2016-02-23 16:35:03,039 [ERROR] [TezChild] |tez.TezProcessor|: org.apache.hadoop.hive.ql.metadata.HiveException: java.io.IOException: java.lang.IndexOutOfBoundsException
    at org.apache.hadoop.hive.ql.exec.tez.MapRecordSource.pushRecord(MapRecordSource.java:71)
    at org.apache.hadoop.hive.ql.exec.tez.MapRecordProcessor.run(MapRecordProcessor.java:326)
    at org.apache.hadoop.hive.ql.exec.tez.TezProcessor.initializeAndRunProcessor(TezProcessor.java:150)
    at org.apache.hadoop.hive.ql.exec.tez.TezProcessor.run(TezProcessor.java:139)
    at org.apache.tez.runtime.LogicalIOProcessorRuntimeTask.run(LogicalIOProcessorRuntimeTask.java:344)
    at org.apache.tez.runtime.task.TezTaskRunner$TaskRunnerCallable$1.run(TezTaskRunner.java:181)
    at org.apache.tez.runtime.task.TezTaskRunner$TaskRunnerCallable$1.run(TezTaskRunner.java:172)
    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:1657)
    at org.apache.tez.runtime.task.TezTaskRunner$TaskRunnerCallable.callInternal(TezTaskRunner.java:172)
    at org.apache.tez.runtime.task.TezTaskRunner$TaskRunnerCallable.callInternal(TezTaskRunner.java:168)
    at org.apache.tez.common.CallableWithNdc.call(CallableWithNdc.java:36)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: java.lang.IndexOutOfBoundsException
    at org.apache.hadoop.hive.io.HiveIOExceptionHandlerChain.handleRecordReaderNextException(HiveIOExceptionHandlerChain.java:121)
    at org.apache.hadoop.hive.io.HiveIOExceptionHandlerUtil.handleRecordReaderNextException(HiveIOExceptionHandlerUtil.java:77)
    at org.apache.hadoop.hive.ql.io.HiveContextAwareRecordReader.doNext(HiveContextAwareRecordReader.java:355)
    at org.apache.hadoop.hive.ql.io.HiveRecordReader.doNext(HiveRecordReader.java:79)
    at org.apache.hadoop.hive.ql.io.HiveRecordReader.doNext(HiveRecordReader.java:33)
    at org.apache.hadoop.hive.ql.io.HiveContextAwareRecordReader.next(HiveContextAwareRecordReader.java:116)
    at org.apache.hadoop.mapred.split.TezGroupedSplitsInputFormat$TezGroupedSplitsRecordReader.next(TezGroupedSplitsInputFormat.java:141)
    at org.apache.tez.mapreduce.lib.MRReaderMapred.next(MRReaderMapred.java:113)
    at org.apache.hadoop.hive.ql.exec.tez.MapRecordSource.pushRecord(MapRecordSource.java:61)
    ... 16 more
Caused by: java.lang.IndexOutOfBoundsException
    at java.nio.Buffer.checkBounds(Buffer.java:567)
    at java.nio.ByteBuffer.get(ByteBuffer.java:686)
    at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:285)
    at org.apache.hadoop.hdfs.BlockReaderLocal.readWithBounceBuffer(BlockReaderLocal.java:609)
    at org.apache.hadoop.hdfs.BlockReaderLocal.read(BlockReaderLocal.java:569)
    at org.apache.hadoop.hdfs.DFSInputStream$ByteArrayStrategy.doRead(DFSInputStream.java:737)
    at org.apache.hadoop.hdfs.DFSInputStream.readBuffer(DFSInputStream.java:793)
    at org.apache.hadoop.hdfs.DFSInputStream.readWithStrategy(DFSInputStream.java:853)
    at org.apache.hadoop.hdfs.DFSInputStream.read(DFSInputStream.java:896)
    at java.io.DataInputStream.read(DataInputStream.java:149)
    at org.apache.hadoop.mapreduce.lib.input.UncompressedSplitLineReader.fillBuffer(UncompressedSplitLineReader.java:59)
    at org.apache.hadoop.util.LineReader.readDefaultLine(LineReader.java:216)
    at org.apache.hadoop.util.LineReader.readLine(LineReader.java:174)
    at org.apache.hadoop.mapreduce.lib.input.UncompressedSplitLineReader.readLine(UncompressedSplitLineReader.java:91)
    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.exec.Utilities.skipHeader(Utilities.java:3911)
    at org.apache.hadoop.hive.ql.io.HiveContextAwareRecordReader.doNext(HiveContextAwareRecordReader.java:337)
    ... 22 more
&lt;/PRE&gt;&lt;P&gt;I already tried to disable vectorization and to increment the tez container size, but nothing changed. &lt;/P&gt;&lt;P&gt;If I execute the query on the same table, but with less data inside, all goes right.&lt;/P&gt;&lt;P&gt;Do you already seen this kind of error?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;D.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 23:47:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-IndexOutOfBoundsException-in-select-distinct/m-p/153846#M20588</guid>
      <dc:creator>vergari</dc:creator>
      <dc:date>2016-02-23T23:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Tez IndexOutOfBoundsException in select distinct</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-IndexOutOfBoundsException-in-select-distinct/m-p/153847#M20589</link>
      <description>&lt;P&gt;This looks awfully like an HDFS bug and entirely unrelated to Tez.

The IndexOutOfBounds is thrown from HDFS block local readers.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2016 10:02:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-IndexOutOfBoundsException-in-select-distinct/m-p/153847#M20589</guid>
      <dc:creator>gopalv</dc:creator>
      <dc:date>2016-02-24T10:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Tez IndexOutOfBoundsException in select distinct</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-IndexOutOfBoundsException-in-select-distinct/m-p/153848#M20590</link>
      <description>&lt;P&gt;Ignoring the actual backtrace (which is a bug), I have seen issues with uncompressed text tables in Tez related to Hive's use of Hadoop-1 APIs.&lt;/P&gt;&lt;P&gt;Try re-running with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;set mapreduce.input.fileinputformat.split.minsize=67108864;&lt;/PRE&gt;or alternatively, compress the files before loading with gzip with something like this

&lt;A href="https://gist.github.com/t3rmin4t0r/49e391eab4fbdfdc8ce1" target="_blank"&gt;https://gist.github.com/t3rmin4t0r/49e391eab4fbdfdc8ce1&lt;/A&gt;</description>
      <pubDate>Wed, 24 Feb 2016 10:08:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-IndexOutOfBoundsException-in-select-distinct/m-p/153848#M20590</guid>
      <dc:creator>gopalv</dc:creator>
      <dc:date>2016-02-24T10:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Tez IndexOutOfBoundsException in select distinct</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-IndexOutOfBoundsException-in-select-distinct/m-p/153849#M20591</link>
      <description>&lt;P&gt;Hi Davide,&lt;/P&gt;&lt;P&gt;setting &lt;/P&gt;&lt;P&gt;hive.tez.input.format=org.apache.hadoop.hive.ql.io.CombineHiveInputFormat is a good workaround.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Bye&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 20:51:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-IndexOutOfBoundsException-in-select-distinct/m-p/153849#M20591</guid>
      <dc:creator>lrea_sys</dc:creator>
      <dc:date>2016-04-04T20:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Tez IndexOutOfBoundsException in select distinct</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-IndexOutOfBoundsException-in-select-distinct/m-p/153850#M20592</link>
      <description>&lt;P&gt;sort merge join to false worked fine for me.&lt;/P&gt;&lt;P&gt;hive.auto.convert.sortmerge.join=false&lt;/P&gt;&lt;P&gt;--Pravat Sutar&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 14:29:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-IndexOutOfBoundsException-in-select-distinct/m-p/153850#M20592</guid>
      <dc:creator>pravat_sutar01</dc:creator>
      <dc:date>2017-09-29T14:29:52Z</dc:date>
    </item>
  </channel>
</rss>

