Your cart is currently empty!
Kafka Installation
Docker:
docker run -d \ --name=kafka-broker \ -h kafka-broker \ -p 9092:9092 \ -p 9101:9101 \ -e KAFKA_PROCESS_ROLES='broker,controller' \ -e KAFKA_CONTROLLER_QUORUM_VOTERS='1@kafka-broker:29093' \ -e KAFKA_NODE_ID=1 \ -e KAFKA_CONTROLLER_LISTENER_NAMES='CONTROLLER' \ -e KAFKA_LISTENER_SECURITY_PROTOCOL_MAP='CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT' \ -e KAFKA_ADVERTISED_LISTENERS='PLAINTEXT://kafka-broker:29092,PLAINTEXT_HOST://<host-ip-address>:9092' \ -e KAFKA_JMX_PORT=9101 \ -e KAFKA_JMX_HOSTNAME=localhost \ -e KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 \ -e KAFKA_LISTENERS='CONTROLLER://kafka-kraft:29093,PLAINTEXT://kafka-kraft:29092,PLAINTEXT_HOST://0.0.0.0:9092' \ -e KAFKA_INTER_BROKER_LISTENER_NAME='PLAINTEXT' \ -e CLUSTER_ID='MkU3OEVBNTcwNTJENDM2Qk' \ confluentinc/cp-kafka
docker run -d ` --name=kafka-broker ` -h kafka-broker ` -p 9092:9092 ` -p 9101:9101 ` -e KAFKA_NODE_ID=1 ` -e KAFKA_LISTENER_SECURITY_PROTOCOL_MAP='CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT' ` -e KAFKA_ADVERTISED_LISTENERS='PLAINTEXT://kafka-kraft:29092,PLAINTEXT_HOST://<host-ip-address>:9092' ` -e KAFKA_JMX_PORT=9101 ` -e KAFKA_JMX_HOSTNAME=localhost ` -e KAFKA_PROCESS_ROLES='broker,controller' ` -e KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 ` -e KAFKA_CONTROLLER_QUORUM_VOTERS='1@kafka-kraft:29093' ` -e KAFKA_LISTENERS='PLAINTEXT://kafka-kraft:29092,CONTROLLER://kafka-kraft:29093,PLAINTEXT_HOST://0.0.0.0:9092' ` -e KAFKA_INTER_BROKER_LISTENER_NAME='PLAINTEXT' ` -e KAFKA_CONTROLLER_LISTENER_NAMES='CONTROLLER' ` -e CLUSTER_ID='MkU3OEVBNTcwNTJENDM2Qk' ` confluentinc/cp-kafka
References:
Leave a Reply