remote kafka

The official demo,, shows how to run kafka with everything on localhost.
Here are the steps to run kafka server remotely. is the server, which runs kafka zookeeper and brokers on ubuntu in aws
WSL, a windows desktop, runs kafka producer and consumer on WSL ubuntu on local windows

On both AWS and WSL:
download kafka tar ball and extract: 57M
extract to: /mnt/ebs/rio/opensrc/kafka/kafka_2.12-2.3.0
install java. I got OpenJDK 64-Bit Server VM build 11

On AWS, server side:
export KAFKA_OPTS=””
otherwise it’s IPV6
edit so that:
otherwise client report error: Connection to node 0 (localhost/
start zookeepter:
bin/ config/
start server:
bin/ config/

On WSL, client side:
Send message:
bin/ –broker-list –topic test
type some text, ctrlD to exit
Check message received:
bin/ –bootstrap-server –topic test –from-beginning
ctrlC to exit

Previous Post
Next Post
Comments are closed.
%d bloggers like this: