Skip to content

bones-brigade/kafka-openshift-python-listener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kafka-python-listener

A simple Python application that will listen to an Apache Kafka topic and print messages that arrive on a specified topic.

it is designed for use with the OpenShift Python source-to-image workflow.

Launching on OpenShift

oc new-app centos/python-36-centos7~https://gitlab.com/bones-brigade/kafka-python-listener.git \
  -e KAFKA_BROKERS=kafka:9092 \
  -e KAFKA_TOPIC=bones-brigade \
  --name=listener

You will need to adjust the KAFKA_BROKERS and KAFKA_TOPICS variables to match your configured Kafka deployment and desired topic.

After launching the application, you will most likely want to follow its log output to see the messages it has heard.

oc logs -f dc/listener

About

MIRROR - A Python source-to-image application skeleton for listening to an Apache Kafka topic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages