Kafka---配置文件詳解

zookeeper.properties配置文件

# the directory where the snapshot is stored.
dataDir=/usr/local/kafka_2.11-1.1.0/data
# 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

server.properties配置文件

# The id of the broker. This must be set to a unique integer for each broker.
broker.id=0

log.dirs=/usr/local/kafka_2.11-1.1.0/kafka-logs

############################# Zookeeper #############################
zookeeper.connect=localhost:2181
zookeeper.connection.timeout.ms=6000
發佈了255 篇原創文章 · 獲贊 104 · 訪問量 20萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章