-
Create zookeeper-logs directory (
mkdir zookeeper-logs) -
Modify
config/zookeeper.propertiesdataDir to point tozookeeper-logs(full path) -
Run Zookeeper
Unix:/bin/zookeeper-server-start.sh kafka/config/zookeeper.propertiesWindows:/bin/windows/zookeeper-server-start.bat config/zookeeper.properties -
Create 3 directories, one for each Kafka broker logs:
mkdir kafka-logs-0mkdir kafka-logs-1mkdir kafka-logs-2 -
Create 2 copies of
config/server.propertiesand name themconfig/server-1.propertiesandconfig/server-2.properties. Rename the originalconfig/server.propertiestoconfig/server-0.properties. -
Change each configuration file's log.dirs to point to the corresponding
kafka-logs-Xdirectory. -
In
server-1.propertiesuncomment the#listeners=PLAINTEXT://:9092and change the port to9093 -
In
server-2.propertiesuncomment the#listeners=PLAINTEXT://:9092and change the port to9094 -
Run 3 Kafka brokers pointing to the corresponding properties files: Unix:
bin/kafka-server-start.sh /config/server-0.properties &bin/kafka-server-start.sh /config/server-1.properties &bin/kafka-server-start.sh /config/server-2.properties &Windows:bin/windows/kafka-server-start.bat /config/server-0.properties &bin/windows/kafka-server-start.bat /config/server-1.properties &bin/windows/kafka-server-start.bat /config/server-2.properties & -
Create valid-transactions Kafka topic:
bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 3 --partitions 3 --topic valid-transactions -
Create suspicious-transactions Kafka topic:
bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 3 --partitions 2 --topic suspicious-transactions
kay-verma/Banking-System-Solution
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|