HomeAdvisor / Kafdrop

Kafka UI and Monitoring Tool
Apache License 2.0
398 stars 163 forks source link

Not able to connect to kafka getting SASL error #51

Open ponmanikandanb opened 4 years ago

ponmanikandanb commented 4 years ago

2019-11-08 19:03:53.288] - 96364 INFO [main] --- ZooKeeper: Initiating client connection, connectString=localhost:31283 sessionTimeout=5000 watcher=org.apache.curator.ConnectionState@39ad977d [2019-11-08 19:03:53.410] - 96364 INFO [main-SendThread(kafka:31283)] --- ClientCnxn: Opening socket connection to server kafka/127.0.0.1:31283. Will not attempt to authenticate using SASL (unknown error) [2019-11-08 19:03:54.419] - 96364 WARN [main-SendThread(kafka:31283)] --- ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect java.net.ConnectException: Connection refused: no further information at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)

ekoutanov commented 4 years ago

@ponmanikandanb there is full support for TLS and SASL in Kafdrop 3. In addition, ZooKeeper connections are no longer required, meaning that you only connect to Kafka brokers.

ponmanikandanb commented 4 years ago

Is there any way to run Kafdrop 3 it in java 8 @ekoutanov

ekoutanov commented 4 years ago

@ponmanikandanb no sorry, the 3.x project has been migrated to Java 11 as part of a wholesale modernisation of the codebase. We're actually using Java 10 language features, so it is not source-compatible with JDK 8.

May I suggest that you just use the Docker image if you don't want to install JDK 11?