Getting Lots of "Unreasonable Length" exceptions on Zk when I start my Kafka broker.

6,146 views
Skip to first unread message

Sharat Joshi

unread,
May 12, 2016, 2:41:26 PM5/12/16
to Confluent Platform
Hi Experts,

I have just downloaded latest Confluent Kafka 2.0.1 and started playing with it setting up a Single broker instance, a Zk and a Schema instance.
When I start Zk its fine, BUT when I start my kafka server I get a lot of these...

[2016-05-12 11:16:23,343] INFO Accepted socket connection from /192.168.0.9:37379 (org.apache.zookeeper.server.NIOServerCnxnFactory)
[2016-05-12 11:16:23,343] WARN Exception causing close of session 0x0 due to java.io.IOException: Unreasonable length = 140473187 (org.apache.zookeeper.server.NIOServerCnxn)
[2016-05-12 11:16:23,344] INFO Closed socket connection for client /192.168.0.9:37379 (no session established for client) (org.apache.zookeeper.server.NIOServerCnxn)
[2016-05-12 11:16:23,645] INFO Accepted socket connection from /192.168.0.9:37380 (org.apache.zookeeper.server.NIOServerCnxnFactory)
[2016-05-12 11:16:23,646] WARN Exception causing close of session 0x0 due to java.io.IOException: Unreasonable length = 140473187 (org.apache.zookeeper.server.NIOServerCnxn)
[2016-05-12 11:16:23,646] INFO Closed socket connection for client /192.168.0.9:37380 (no session established for client) (org.apache.zookeeper.server.NIOServerCnxn)
[2016-05-12 11:16:23,949] INFO Accepted socket connection from /192.168.0.9:37381 (org.apache.zookeeper.server.NIOServerCnxnFactory)
[2016-05-12 11:16:23,950] WARN Exception causing close of session 0x0 due to java.io.IOException: Unreasonable length = 140473187 (org.apache.zookeeper.server.NIOServerCnxn)
[2016-05-12 11:16:23,950] INFO Closed socket connection for client /192.168.0.9:37381 (no session established for client) (org.apache.zookeeper.server.NIOServerCnxn)
[2016-05-12 11:16:24,252] INFO Accepted socket connection from /192.168.0.9:37382 (org.apache.zookeeper.server.NIOServerCnxnFactory)
[2016-05-12 11:16:24,253] WARN Exception causing close of session 0x0 due to java.io.IOException: Unreasonable length = 140473187 (org.apache.zookeeper.server.NIOServerCnxn)
[2016-05-12 11:16:24,253] INFO Closed socket connection for client /192.168.0.9:37382 (no session established for client) (org.apache.zookeeper.server.NIOServerCnxn)
[2016-05-12 11:16:24,404] INFO Processed session termination for sessionid: 0x154a627b3d00006 (org.apache.zookeeper.server.PrepRequestProcessor)
[2016-05-12 11:16:24,419] INFO Closed socket connection for client /192.168.0.9:37236 which had sessionid 0x154a627b3d00006 (org.apache.zookeeper.server.NIOServerCnxn)


It just goes On and On and On...

I am using basic defaults on Zk, Server and Schema settings...


Zk Settings...
dataDir=/tmp/zookeeper
clientPort=2181
maxClientCnxns=100


Server Settings...
listeners=PLAINTEXT://:9092
advertised.port=2181
num.network.threads=3
num.io.threads=8
socket.send.buffer.bytes=102400
socket.receive.buffer.bytes=102400
log.dirs=/tmp/kafka-logs
num.partitions=1
num.recovery.threads.per.data.dir=1
log.retention.hours=168
log.segment.bytes=1073741824
zookeeper.connect=192.168.0.9:2181


Schema Registry Settings...
port=8081
kafkastore.connection.url=192.168.0.9:2181
kafkastore.topic=_schemas
debug=false



PLEASE Help me get around this BASIC error.

Message has been deleted

Sharat Joshi

unread,
May 24, 2016, 8:28:09 PM5/24/16
to Confluent Platform
Hi Experts...

Please HELP
Any Ideas as to why I keep getting the "Unreasonable Length" Exception when my Kafka Server starts

Dustin Cote

unread,
May 24, 2016, 8:41:09 PM5/24/16
to confluent...@googlegroups.com

Hi Sharat,

The message is indicating you have a very large znode being passed from zookeeper to Kafka. It looks like you have something not created by Kafka sitting in zookeeper. Can you start with a new zookeeper instance with empty data directories to see if that can unblock you?

--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/a000e16f-c1a9-46cd-b008-fff6355fb273%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

MR

unread,
Jun 17, 2017, 9:26:09 AM6/17/17
to Confluent Platform
Hello Sharat,

Were you able to resolve this issue? I am getting same on my Kafka Cluster.

Thanks!!
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.

alkesh

unread,
Jan 13, 2020, 10:08:57 PM1/13/20
to Confluent Platform
Hi Sharat,
Similar exceptions come if you're trying to use zookeeper instance or ports instead of kafka broker instance/ports while starting producer/consumer or creating a topic.
Reply all
Reply to author
Forward
0 new messages