Public | Automated Build

Last pushed: 3 months ago
Short Description
A Docker image for Kafka
Full Description

docker-kafka

Docker image of Apache Kafka

Console producer and consumer

Since this is secured Kafka so it is required to tell Kafka client security configuration to use for authentication and authorization

export KAFKA_OPTS="-Djava.security.krb5.conf=/etc/krb5.conf -Djava.security.auth.login.config=${KAFKA_HOME}/config/kafka-client-jaas.conf"

  • Console producer
    bin/kafka-console-producer.sh --broker-list [advertised-hostname]:9092 --producer.config config/producer.properties --topic [topic-name]
    
  • Console consumer
    bin/kafka-console-consumer.sh --bootstrap-server [advertised-hostname]:9092 --consumer.config config/consumer.properties --from-beginning --topic [topic-name]
    
Docker Pull Command
Owner
binhnv
Source Repository