1

I'm having trouble configuring kafka and spring on Windows 10 machine.

I did according to the guide, which I found on YouTube https://www.youtube.com/watch?v=IncG0_XSSBg&t=538s.

I can't connect locally in any way.

The spring application is very simple and its task is only to connect to the standing server.

I have already spent a lot of time looking for a solution and nothing helps me. I tried a lot. changed it to server.properties listenera na listeners = PLAINTEXT: //127.0.0.1: 9092. I changed Java version to jre 8.241.

The spring application cannot connect to the broker.

Please help.

spri

UPDATE

After typing, to start Kafka server:

bin/kafka-server-start.sh config/server.properties

I have got following error:

enter image description here

Sercan
  • 2,081
  • 2
  • 10
  • 23
Grafik Krystian
  • 179
  • 2
  • 13

1 Answers1

0

After you run zookeper, open another terminal, change directory to again where you run zookeper, and then run command bin/kafka-server-start.sh config/server.properties. This will start kafka server, and you will be able to reach 9092 port.

For details, you can see quick start doc.

Sercan
  • 2,081
  • 2
  • 10
  • 23
  • Thank You. I have got another error. Can You help me ? – Grafik Krystian Jun 24 '20 at 20:14
  • In which order did you start them? First zookeper should be started, and then in separate terminal kafka should be started. Please compare your steps with the ones in docs I shared in my answer (https://kafka.apache.org/quickstart) – Sercan Jun 24 '20 at 20:24
  • Yes I did this. – Grafik Krystian Jun 24 '20 at 20:26
  • Firstly I have started zookeper and then kafka – Grafik Krystian Jun 24 '20 at 20:26
  • 1
    I was looking for solution and just saw this [Kafka server is not connecting with zookeeper server remotly](https://stackoverflow.com/questions/61541349/kafka-server-is-not-connecting-with-zookeeper-server-remotly), and this is not resolved in this question. What i can suggest that just make sure that loacalhost:port options for connection in `server.properties` , `zookeeper.properties` and `c:\Windows\System32\Drivers\etc\hosts` are pointing same localhost:port option. Apart from that i am sorry i am linux user, good luck – Sercan Jun 24 '20 at 21:56