Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Storm: Kafka spout error

Storm: Kafka spout error

New Contributor

Hi,

Please your help with the following error:

java.lang.IndexOutOfBoundsException: end index (429) must not be less than start index (7763) at org.apache.storm.shade.com.google.common.base.Preconditions.checkPositionIndexes(Preconditions.java:386) at com.hortonworks.streamline.streams.runtime.storm.spout.AvroKafkaSpoutTranslator$ByteBufferInputStream.read(AvroKafkaSpoutTranslator.java:108) at org.apache.avro.io.BinaryDecoder$InputStreamByteSource.tryReadRaw(BinaryDecoder.java:839) at org.apache.avro.io.BinaryDecoder$ByteSource.compactAndFill(BinaryDecoder.java:692) at

This error happened when I run an application in SAM (attached).

Thanks


sam-application.jpg
5 REPLIES 5
Highlighted

Re: Storm: Kafka spout error

New Contributor

its a old version bug of sam。you can find answer on here:

https://github.com/hortonworks/streamline/issues/1081

,

its a old version bug of sam

https://github.com/hortonworks/streamline/issues/1081

Highlighted

Re: Storm: Kafka spout error

New Contributor

Hi Bruce Liu,

Thanks for your answer. I have additional question about the solution, where I can change this code?

Sorry but I am new in Hortonworks.

Thank you.

Highlighted

Re: Storm: Kafka spout error

New Contributor

yeah,you can find the code on this https://github.com/hortonworks/streamline/pull/1082

Replace current condition

<code>            Preconditions.checkPositionIndexes(off, len, bytes.length);

with

<code>            Preconditions.checkPositionIndexes(off, off+len, bytes.length);
Highlighted

Re: Storm: Kafka spout error

New Contributor

Hi @bruce liu

Sorry again, but I don't understand at all. Where I can change this code?. I don't know if I have to look some file in the Linux filesystem, or if I have to download some file and change in Eclipse, or is just by other way.

Thanks again.

Highlighted

Re: Storm: Kafka spout error

New Contributor

Hi @Alejandro Camacho

maybe you can update your sam to a newer version

or you may change code by Eclipse or replace a jar file which contains Preconditions.java . but its risky and you must do enough test!

Don't have an account?
Coming from Hortonworks? Activate your account here