AnsweredAssumed Answered

Intermittent problems with Hive using BZip2

Question asked by fmdataservices on Aug 7, 2012
Latest reply on Aug 22, 2012 by fmdataservices
I have a process which does the following:
 1. loads bzip2 files into MapR FS using hadoop fs -copyFromLocal
 2. Does a LOAD from MapR FS into a Hive table using textfile format.
 3. Then a SELECT query counts the total rows in the table (SELECT count(1)...). 

This SELECT query sometimes fails with the following exception. The exception seems to indicate a corrupted bzip2 file, but when I re-run the above steps using the same files, the process succeeds.

It is stated in the documentation that files with certain extensions (bz2 and others) are not compressed and this is the case with the settings on this cluster.

---------- unexpected end of stream at at at at at at at$ at at org.apache.hadoop.util.LineReader.readDefaultLine( at org.apache.hadoop.util.LineReader.readLine( at at at at at 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.Child$ at Method) at at at org.apache.hadoop.mapred.Child.main(