# Logstash 5 Alpha 4 connection with zookeeper is getting error

**URL:** <https://discuss.elastic.co/t/logstash-5-alpha-4-connection-with-zookeeper-is-getting-error/55421>\
**Category:** Logstash\
**Created:** [July 13, 2016, 3:03pm UTC](https://discuss.elastic.co/t/logstash-5-alpha-4-connection-with-zookeeper-is-getting-error/55421 "2016-07-13T15:03:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaurav\_S\_javheri](https://avatars.discourse-cdn.com/v4/letter/g/82dd89/32.png) [@gaurav\_S\_javheri](https://discuss.elastic.co/u/gaurav_S_javheri)\
**Post date:** [July 13, 2016, 3:03pm UTC](https://discuss.elastic.co/t/logstash-5-alpha-4-connection-with-zookeeper-is-getting-error/55421/1 "2016-07-13T15:03:18Z")

</div>

Below is configuration to connect to zookeeper server which configured with Kafka 0.10

input {  
kafka {  
bootstrap\_servers =\> "zk\_server:2181"  
topics =\> ['logstash\_log\_2']  
}  
}

output{  
stdout{}  
}

In zookeeper which is configured with Kafka -0.10 is giving below error in logs.

[2016-07-13 20:21:36,574] WARN Exception causing close of session 0x0 due to java.io.IOException: Unreasonable length = 1819240307 (org.apache.zookeeper.server.NIOServerCnxn)

because of which i feel data cannot be picked from kafka in logstash.

Please provide help

---

<div class="post-metadata">

**Author:** ![allenmchan](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@allenmchan](https://discuss.elastic.co/u/allenmchan)\
**Post date:** [July 13, 2016, 5:03pm UTC](https://discuss.elastic.co/t/logstash-5-alpha-4-connection-with-zookeeper-is-getting-error/55421/2 "2016-07-13T17:03:16Z")

</div>

1. Look at the compatibility matrix and see what kafka client it is  
[https://github.com/logstash-plugins/logstash-input-kafka](https://github.com/logstash-plugins/logstash-input-kafka)

2. Given you are using the 0.10 client, you need to know that it doesnt connect to zookeeper. Kakfa removed zookeeper dependency from the clients starting 0.9.

3. So look at the documentation and update your configuration

---

<div class="post-metadata">

**Author:** ![gaurav\_S\_javheri](https://avatars.discourse-cdn.com/v4/letter/g/82dd89/32.png) [@gaurav\_S\_javheri](https://discuss.elastic.co/u/gaurav_S_javheri)\
**Post date:** [July 14, 2016, 5:16am UTC](https://discuss.elastic.co/t/logstash-5-alpha-4-connection-with-zookeeper-is-getting-error/55421/3 "2016-07-14T05:16:10Z")

</div>

Thanks a lot. You are correct about zookeeper dependency. I removed it and it started working now.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:48am UTC](https://discuss.elastic.co/t/logstash-5-alpha-4-connection-with-zookeeper-is-getting-error/55421/4 "2017-07-06T04:48:07Z")

</div>


