0
respostas

kafka.zookeeper.ZooKeeperClientTimeoutException: Timed out waiting for connection while in state: CONNECTING

Estou rodando o servidor com o .bat já que meu ambiente é o windows, ao que parece o servidor não está conseguindo subir, tentando uma conexão no meu localhost e falhando. Segue o LOG:

[2021-01-20 21:37:13,766] INFO Client environment:java.library.path=C:\Program Files\Java\jdk-11.0.9\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\app\oracleXE\product\18.0.0\dbhomeXE\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Git\cmd;C:\Program Files\Condusiv Technologies\ExpressCache\;C:\Users\Cristierre_Konrath\AppData\Local\Microsoft\WindowsApps;C:\Users\Cristierre_Konrath\AppData\Local\Programs\Microsoft VS Code\bin;. (org.apache.zookeeper.ZooKeeper)
[2021-01-20 21:37:13,767] INFO Client environment:java.io.tmpdir=C:\Users\CRISTI~1\AppData\Local\Temp\ (org.apache.zookeeper.ZooKeeper)
[2021-01-20 21:37:13,768] INFO Client environment:java.compiler=<NA> (org.apache.zookeeper.ZooKeeper)
[2021-01-20 21:37:13,769] INFO Client environment:os.name=Windows 10 (org.apache.zookeeper.ZooKeeper)
[2021-01-20 21:37:13,770] INFO Client environment:os.arch=amd64 (org.apache.zookeeper.ZooKeeper)
[2021-01-20 21:37:13,771] INFO Client environment:os.version=10.0 (org.apache.zookeeper.ZooKeeper)
[2021-01-20 21:37:13,772] INFO Client environment:user.name=Cristierre_Konrath (org.apache.zookeeper.ZooKeeper)
[2021-01-20 21:37:13,773] INFO Client environment:user.home=C:\Users\Cristierre_Konrath (org.apache.zookeeper.ZooKeeper)
[2021-01-20 21:37:13,774] INFO Client environment:user.dir=C:\DEV\kafka_2.12-2.3.1\bin\windows (org.apache.zookeeper.ZooKeeper)
[2021-01-20 21:37:13,779] INFO Initiating client connection, connectString=localhost:2181 sessionTimeout=6000 watcher=kafka.zookeeper.ZooKeeperClient$ZooKeeperClientWatcher$@3a5ecce3 (org.apache.zookeeper.ZooKeeper)
[2021-01-20 21:37:13,814] INFO [ZooKeeperClient Kafka server] Waiting until connected. (kafka.zookeeper.ZooKeeperClient)
[2021-01-20 21:37:13,818] INFO Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn)
[2021-01-20 21:37:15,845] INFO Socket error occurred: localhost/0:0:0:0:0:0:0:1:2181: Connection refused: no further information (org.apache.zookeeper.ClientCnxn)
[2021-01-20 21:37:16,951] INFO Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn)
[2021-01-20 21:37:18,996] INFO Socket error occurred: localhost/0:0:0:0:0:0:0:1:2181: Connection refused: no further information (org.apache.zookeeper.ClientCnxn)
[2021-01-20 21:37:19,822] INFO [ZooKeeperClient Kafka server] Closing. (kafka.zookeeper.ZooKeeperClient)
[2021-01-20 21:37:20,119] INFO Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn)
[2021-01-20 21:37:22,265] INFO Session: 0x0 closed (org.apache.zookeeper.ZooKeeper)
[2021-01-20 21:37:22,266] INFO EventThread shut down for session: 0x0 (org.apache.zookeeper.ClientCnxn)
[2021-01-20 21:37:22,273] INFO [ZooKeeperClient Kafka server] Closed. (kafka.zookeeper.ZooKeeperClient)
[2021-01-20 21:37:22,286] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.zookeeper.ZooKeeperClientTimeoutException: Timed out waiting for connection while in state: CONNECTING
        at kafka.zookeeper.ZooKeeperClient.$anonfun$waitUntilConnected$3(ZooKeeperClient.scala:258)
        at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
        at kafka.utils.CoreUtils$.inLock(CoreUtils.scala:253)
        at kafka.zookeeper.ZooKeeperClient.waitUntilConnected(ZooKeeperClient.scala:254)
        at kafka.zookeeper.ZooKeeperClient.<init>(ZooKeeperClient.scala:112)
        at kafka.zk.KafkaZkClient$.apply(KafkaZkClient.scala:1826)
        at kafka.server.KafkaServer.createZkClient$1(KafkaServer.scala:364)
        at kafka.server.KafkaServer.initZkClient(KafkaServer.scala:387)
        at kafka.server.KafkaServer.startup(KafkaServer.scala:207)
        at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:38)
        at kafka.Kafka$.main(Kafka.scala:84)
        at kafka.Kafka.main(Kafka.scala)
[2021-01-20 21:37:22,289] INFO shutting down (kafka.server.KafkaServer)
[2021-01-20 21:37:22,303] INFO shut down completed (kafka.server.KafkaServer)
[2021-01-20 21:37:22,305] ERROR Exiting Kafka. (kafka.server.KafkaServerStartable)
[2021-01-20 21:37:22,313] INFO shutting down (kafka.server.KafkaServer)

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software