Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 基于Zookeeper搭建Kafka高可用集群.md #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions notes/installation/基于Zookeeper搭建Kafka高可用集群.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,25 +180,25 @@ listeners=PLAINTEXT://hadoop001:9092
# 数据的存储位置
log.dirs=/usr/local/kafka-logs/00
# Zookeeper连接地址
zookeeper.connect=hadoop001:2181,hadoop001:2182,hadoop001:2183
zookeeper.connect=hadoop001:2181,hadoop002:2181,hadoop003:2181
```

server-2.properties:

```properties
broker.id=1
listeners=PLAINTEXT://hadoop001:9093
listeners=PLAINTEXT://hadoop002:9092
log.dirs=/usr/local/kafka-logs/01
zookeeper.connect=hadoop001:2181,hadoop001:2182,hadoop001:2183
zookeeper.connect=hadoop001:2181,hadoop002:2181,hadoop003:2181
```

server-3.properties:

```properties
broker.id=2
listeners=PLAINTEXT://hadoop001:9094
listeners=PLAINTEXT://hadoop003:9092
log.dirs=/usr/local/kafka-logs/02
zookeeper.connect=hadoop001:2181,hadoop001:2182,hadoop001:2183
zookeeper.connect=hadoop001:2181,hadoop002:2181,hadoop003:2181
```

这里需要说明的是 `log.dirs` 指的是数据日志的存储位置,确切的说,就是分区数据的存储位置,而不是程序运行日志的位置。程序运行日志的位置是通过同一目录下的 `log4j.properties` 进行配置的。
Expand Down