Start the Kafka brokerįrom a directory containing the docker-compose.yml file created in the previous step, run this command to start all services in the correct order. KAFKA_ADVERTISED_LISTENERS : PLAINTEXT ://localhost : 9092 ,PLAINTEXT_INTERNAL ://broker : 29092 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR : 1 KAFKA_TRANSACTION_STATE_LOG_MIN_ISR : 1 KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR : 1 2. Using Docker container networking, a Apache Kafka server running inside a container can easily be accessed by your application containers. ![]()
Kubernetes is an open source platform that allows teams to deploy, manage, and automate containerized services and workloads.Docker containers : wrap up a piece of software in a complete filesystem that contains everything it needs to run: code, runtime, system tools, system libraries anything you can install on a server. It provides the functionality of a messaging system. ![]() There’s something about YAML and the word Docker that doesn’t quite sit well with Viktor Gamov (Developer Advocate, Confluent). Apache Kafka : Kafka is a distributed, partitioned, replicated commit log service.version : '3' services : zookeeper : image : confluentinc/cp -zookeeper :7.3.0Įnvironment : ZOOKEEPER_CLIENT_PORT : 2181 ZOOKEEPER_TICK_TIME : 2000 broker : image : confluentinc/cp -kafka :7.3.0
0 Comments
Leave a Reply. |