Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kafka : Running Confluent in a Windows environment

I set up Kafka for local run. I have written sample producer and consumer in Java and running from local, by starting server and zookeeper.
I want to use oracle as producer, that will require to write the configuration file(already written), confluent shell script to run it on Unix.

Is there any way to run confluent on Windows, I could not find the batch file confluent in setup?

Also, is there any way to run Oracle as producer, without using confluent script?

like image 602
Sujeet kumar Avatar asked Apr 20 '18 17:04

Sujeet kumar


People also ask

Can you run Kafka on Windows?

Yes, if you download the Kafka binaries on Windows and use commands such as kafka-topics. bat against your cluster running in WSL2, everything should work properly.


2 Answers

Confluent Platform is not supported on Windows. Best option if you have to use Windows is the Docker images, which are fully supported.

like image 67
Robin Moffatt Avatar answered Nov 10 '22 00:11

Robin Moffatt


The Confluent software has plenty of shell scripts and you can leverage them on Windows if you can use Cygwin ( https://www.cygwin.com/ ).

Pre-requisite: The Java SDK to use should be installed on a file path without space.

Pre-requisite: Cygwin with curl installed

Download the Confluent distribution and install (unpack) on a file path without space.

For each of the following start a Cygwin session and set JAVA_HOME to the SDK and goto /bin

Start zookeeper with

./zookeeper-server-start ../etc/kafka/zookeeper.properties

Start Kafka broker with

./kafka-server-start ../etc/kafka/server.properties

Start Confluent Schema Registry with

./schema-registry-start ../etc/schema-registry/schema-registry.properties
like image 44
Anders Eriksson Avatar answered Nov 09 '22 22:11

Anders Eriksson