hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prasanth Jayachandran <>
Subject Re: ORC String error
Date Mon, 11 Aug 2014 06:49:36 GMT

My suspicion for the error is because of this issue
Applying this patch should resolve the issue. The alternative workaround would to “set hive.optimize.index.filter=false"

Prasanth Jayachandran

On Aug 10, 2014, at 11:45 PM, Wojciech Indyk <> wrote:

> Hi!
> I Use CDH 5.1.0 (5.0.3 recently) with Hive 0.12.
> I created ORC table with Snappy compression consisted with some
> integer and string columns. I imported few ~40GB gz files data into
> HDFS, then as external table inserted the external table into ORC
> table.
> Unfortunately, when I want to process two string columns (url and
> refererurl) I got an error:
> Error:
> java.lang.ArrayIndexOutOfBoundsException: 625920 at
> at
> at org.apache.hadoop.hive.shims.HadoopShimsSecure$CombineFileRecordReader.doNextWithExceptionHandler(
> at org.apache.hadoop.hive.shims.HadoopShimsSecure$
> at org.apache.hadoop.mapred.MapTask$TrackedRecordReader.moveToNext(
> at org.apache.hadoop.mapred.MapTask$
> at at
> org.apache.hadoop.mapred.MapTask.runOldMapper( at
> at
> org.apache.hadoop.mapred.YarnChild$ at
> Method) at
> at
> at org.apache.hadoop.mapred.YarnChild.main( Caused
> by: java.lang.ArrayIndexOutOfBoundsException:
> 625920 at
> at
> at
> at
> at
> at
> at org.apache.hadoop.hive.shims.HadoopShimsSecure$CombineFileRecordReader.doNextWithExceptionHandler(
> ... 11 more Caused by: java.lang.ArrayIndexOutOfBoundsException:
> 625920 at$
> at$
> at$
> at
> at$
> at$
> at
> ... 15 more
> The error occurs for one mapper per file. E.g. I have two 40GB files
> in my ORC table. Hive creates 300 mappers for a query. Only 2 mappers
> fail with the error above (different array index).
> When I process other columns (both int and string type) a processing
> is finished correctly. I see the error is related to StringTreeReader.
> What is the default delimiter for ORC columns? Maybe the delimiter
> exists in the error string record? But I think it shouldn't cause
> IndexOutOfBounds...
> Is any limitation of string length for ORC? I know there is default
> 128MB stripe for ORC, but I don't expect so huge string as 100MB.
> Kindly regards
> Wojciech Indyk

NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

View raw message