-
Create zookeeper-logs directory (
mkdir zookeeper-logs
) -
Modify
config/zookeeper.properties
dataDir to point tozookeeper-logs
(full path) -
Run Zookeeper
Unix:/bin/zookeeper-server-start.sh kafka/config/zookeeper.properties
Windows:/bin/windows/zookeeper-server-start.bat config/zookeeper.properties
-
Create 3 directories, one for each Kafka broker logs:
mkdir kafka-logs-0
mkdir kafka-logs-1
mkdir kafka-logs-2
-
Create 2 copies of
config/server.properties
and name themconfig/server-1.properties
andconfig/server-2.properties
. Rename the originalconfig/server.properties
toconfig/server-0.properties
. -
Change each configuration file's log.dirs to point to the corresponding
kafka-logs-X
directory. -
In
server-1.properties
uncomment the#listeners=PLAINTEXT://:9092
and change the port to9093
-
In
server-2.properties
uncomment the#listeners=PLAINTEXT://:9092
and 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
-
Notifications
You must be signed in to change notification settings - Fork 0
kay-verma/Banking-System-Solution
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published