Error in fetch kafka.consumer.ConsumerFetcherThread$FetchRequest@552d6b60. Possible cause: java.nio.BufferUnderflowException
Running 1.3.0.7 with Kafka 2.11-0.8.2.1. Getting 100s of these errors in the logs.
[warn] k.c.ConsumerFetcherThread - [ConsumerFetcherThread-KafkaManagerOffsetCache_mon01-1461164220016-3d2546ed-0-3], Error in fetch kafka.consumer.ConsumerFetcherThread$FetchRequest@552d6b60. Possible cause: java.nio.BufferUnderflowException
Running 1.3.0.8 with confluent kafka 9.0.1 and seeing the same. I could not find refs to it in the source code and the manager appears to work correctly other than the error.
As a sloppy hack I added this to my script on the same line where I launch kafka-manager so at least my logs are clean:
| grep -v "Possible cause: java.nio.BufferUnderflowException" ^ this is pipe.
Running 1.3.0.7 with Kafka 2.11-0.8.2.1. Getting the same warning log.
Same here. On 1.3.0.8 with Kafka 2.11-0.8.2.2.
I'm pretty sure this has to do with the fact that kafka-manager is built against kafka 0.9.0.1. The consumer in 0.9.0.1 is not compatible with an 0.8.2.x broker. The reverse (0.8.2.x consumer with 0.9.0.1 broker) is backwards compatible if inter.broker.protocol.version is set correctly in the broker config.
I don't know of an eloquent way to solve this dilemma other than trying to use 0.8.2.x dependencies and fixing any compilation errors. Alternatively, you could update your brokers to 0.9.0.1.
I suppose a third option could be to abstract the consumer portion of kafka-manager out into its own microservice (or number of micoservices for each version of kafka you need to monitor). Then you could determine which microservice to call based on the version setting in the cluster configuration.
Same here. On 1.3.0.8 with Kafka 2.11-0.8.2.2.
Same here. On 1.3.0.8 with Kafka 2.11-0.8.2.2.
I worked around this by creating a branch off 3ef1568cee03359387f786e1e8aec4f299ff794c. I applied these patches with some modifications to rip out the Kafka 0.9 stuff: https://github.com/yahoo/kafka-manager/commit/fedbdca0a2a680f51bea65506a6b73a7125095b2 https://github.com/yahoo/kafka-manager/commit/0ab8108b0702df9d39c6695abdff97ce54be8a1f
The branch is here: https://github.com/jmwong/kafka-manager/tree/pre-090-support
Same here. On 1.3.0.8 with Kafka 2.11-0.8.2.2.
I don't know if this is the reason why my JMX Metrics does‘t display.
Nope. JMX metrics usually don't display because of firewall rules. The tricky part is you need to whitelist everything. Not just the port to told JMX to listen on. This is because during the connection JMX creates random ports. :(