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?
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.
Confluent Platform is not supported on Windows. Best option if you have to use Windows is the Docker images, which are fully supported.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With