0

Any solution for windows to setup and run the Kafka rest proxy? so i can browse and send the API get/post message via IP/browser?

e.g. at windows browser to get the topics, and use the soapui tool to send GET message to do query? http://IPaddress:8082/topics

I have Kafka server and Zookeer running at windows environment. Creating topics and viewing topics via cmd is working fine, but when browsing url http://localhost:8082/topics , i got empty server response, i guess it is due to kafka-rest isn't install at windows.

asolanki
  • 1,333
  • 11
  • 18
user2201789
  • 1,083
  • 2
  • 20
  • 45

1 Answers1

1

Kafka-rest is a part of confluent platform. It is supported only on Linux platforms. But you can deploy the docker image of rest-proxy on windows. The image is available here.

docker run -d \ --net=host \ --name=kafka-rest \ -e KAFKA_REST_ZOOKEEPER_CONNECT=localhost:32181 \ -e KAFKA_REST_LISTENERS=http://localhost:8082 \ -e KAFKA_REST_SCHEMA_REGISTRY_URL=http://localhost:8081 \
confluentinc/cp-kafka-rest:5.3.0

The link for docker configuration is here

asolanki
  • 1,333
  • 11
  • 18
  • just managed to pull the docker kafka-rest. how do i run it with my current kafka server? i could not find the binaries kafka-rest file at windows. i am running kafka server at windows. – user2201789 Jul 25 '19 at 07:02
  • Edited the answer to add the docker configuration parameters – asolanki Jul 25 '19 at 07:07
  • not really understand your edited comment, is that a command to run at git bash? docker run -d \ --net=host \ --name=kafka-rest \ -e KAFKA_REST_ZOOKEEPER_CONNECT=localhost:32181 \ -e KAFKA_REST_LISTENERS=http://localhost:8082 \ -e KAFKA_REST_SCHEMA_REGISTRY_URL=http://localhost:8081 \ confluentinc/cp-kafka-rest:5.3.0 – user2201789 Jul 25 '19 at 09:16
  • This is a command you can run on the shell, of-course edit the value of parameters like KAFKA_REST_ZOOKEEPER_CONNECT to reflect your kafka setup – asolanki Jul 25 '19 at 09:23