# zookeeper.properties
# the directory where the snapshot is stored.
dataDir=/tmp/zookeeper
# the port at which the clients will connect
clientPort=2181
# disable the per-ip limit on the number of connections since this is a non-production config
maxClientCnxns=0
# Zookeeper starten
bin/zookeeper-server-start.sh config/zookeeper.properties
# server.properties
# The minimum age of a log file to be eligible for deletion due to age
log.retention.hours=168
# A size-based retention policy for logs. Segments are pruned from the log unless the remaining
# segments drop below log.retention.bytes. Functions independently of log.retention.hours.
#log.retention.bytes=1073741824
# The maximum size of a log segment file. When this size is reached a new log segment will be created.
log.segment.bytes=1073741824
# The interval at which log segments are checked to see if they can be deleted according
# to the retention policies
log.retention.check.interval.ms=300000
##### Zookeeper #############################
'zookeeper.connect=localhost:2181'
# Timeout in ms for connecting to zookeeper
zookeeper.connection.timeout.ms=6000
# Broker (Server) starten
bin/kafka-server-start.sh config/server.properties
# Topic test erstellen
bin/kafka-topics.sh \
--create --zookeeper localhost:2181 \
--replication-factor 1 \
--partitions 1 \
--topic test \
# Topics auflisten
bin/kafka-topics.sh --list --zookeeper localhost:2181
Created By
https://github.com/Huluvu424242
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by FunThomas424242