Posts

Showing posts from November, 2024

Apache Kafka Quickstart

  Step 1: Get Kafka Download  the latest Kafka release and extract it: $ tar -xzf kafka_2.13-3.8.1.tgz $ cd kafka_2.13-3.8.1 Step 2: Start the Kafka environment NOTE: Your local environment must have Java 8+ installed. Apache Kafka can be started using KRaft or ZooKeeper. To get started with either configuration follow one of the sections below but not both. Kafka with KRaft Kafka can be run using KRaft mode using local scripts and downloaded files or the docker image. Follow one of the sections below but not both to start the kafka server. Using downloaded files Generate a Cluster UUID $ KAFKA_CLUSTER_ID = " $( bin/kafka-storage.sh random-uuid ) " Format Log Directories $ bin/kafka-storage.sh format -t $KAFKA_CLUSTER_ID -c config/kraft/server.properties Start the Kafka Server $ bin/kafka-server-start.sh config/kraft/server.properties Kafka with ZooKeeper Run the following commands in order to start all services in the correct order: # Start the ZooKeeper service $ bin/z...

Microservice