Skip to content

Commit

Permalink
Added KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR in docker-compose file
Browse files Browse the repository at this point in the history
As mentioned in the YouTube video, this is required for single node cluster. Without this line consumer.js was throwing error.
  • Loading branch information
ashiqsultan authored May 25, 2021
1 parent bc01f3c commit 746bd07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kafka/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ services:
environment:
KAFKA_ADVERTISED_HOST_NAME: <YOUR_IP_ADDRESS>
ZOOKEEPER_IP: <YOUR_IP_ADDRESS>
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1

0 comments on commit 746bd07

Please sign in to comment.