hadoop job failed when reading file from Alluxio

40 views
Skip to first unread message

黄志

unread,
Aug 16, 2016, 10:19:38 PM8/16/16
to Alluxio Users
java.lang.IllegalArgumentException: offset=0, length=8388608, exceeding fileSize=585
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:119)
at alluxio.worker.block.io.LocalFileBlockReader.read(LocalFileBlockReader.java:61)
at alluxio.client.block.LocalBlockInStream.bufferedRead(LocalBlockInStream.java:105)
at alluxio.client.block.BufferedBlockInStream.updateBuffer(BufferedBlockInStream.java:228)
at alluxio.client.block.BufferedBlockInStream.read(BufferedBlockInStream.java:129)
at alluxio.client.file.FileInStream.read(FileInStream.java:208)
at alluxio.hadoop.HdfsFileInputStream.read(HdfsFileInputStream.java:185)
at java.io.DataInputStream.read(DataInputStream.java:100)
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.mapreduce.lib.input.LineRecordReader.skipUtfByteOrderMark(LineRecordReader.java:143)
at org.apache.hadoop.mapreduce.lib.input.LineRecordReader.nextKeyValue(LineRecordReader.java:183)
at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.nextKeyValue(MapTask.java:556)
at org.apache.hadoop.mapreduce.task.MapContextImpl.nextKeyValue(MapContextImpl.java:80)
at org.apache.hadoop.mapreduce.lib.map.WrappedMapper$Context.nextKeyValue(WrappedMapper.java:91)
at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:145)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:787)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:164)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)
I can read the file from a Java client, but when I use Hadoop to read it, this error happens,can anyone help me?Thanks!

Yupeng Fu

unread,
Aug 16, 2016, 11:59:43 PM8/16/16
to 黄志, Alluxio Users
Hi,

What's the version of Alluxio and Hadoop that you are using?
Also, from the exception message, it seems the file length to read exceeds the file size. Can you double check the file size to make sure it meets your expectations?

Thanks,

--
You received this message because you are subscribed to the Google Groups "Alluxio Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alluxio-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yupeng Fu

unread,
Aug 19, 2016, 12:20:02 PM8/19/16
to Alluxio Users, huangzhi...@gmail.com
Hi, 

Has your issue been solved?

Thanks,
Reply all
Reply to author
Forward
0 new messages