Update Kafka深入理解分区副本机制.md

This commit is contained in:
heibaiying 2019-05-29 15:45:35 +08:00 committed by GitHub
parent aeb77a7b92
commit 45fa051f80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,8 @@ public long transferFrom(FileChannel fileChannel, long position, long count) thr
基于以上原因如果你在一个单节点上创建一个3副本的主题通常会抛出下面的异常
```properties
Error while executing topic command : org.apache.kafka.common.errors.InvalidReplicationFactor Exception: Replication factor: 3 larger than available brokers: 1.
Error while executing topic command : org.apache.kafka.common.errors.InvalidReplicationFactor
Exception: Replication factor: 3 larger than available brokers: 1.
```
### 4.2 分区数据保留规则
@ -158,4 +159,4 @@ Error while executing topic command : org.apache.kafka.common.errors.InvalidRepl
1. Neha Narkhede, Gwen Shapira ,Todd Palino(著) , 薛命灯(译) . Kafka权威指南 . 人民邮电出版社 . 2017-12-26
2. [Kafka高性能架构之道](http://www.jasongj.com/kafka/high_throughput/)
2. [Kafka高性能架构之道](http://www.jasongj.com/kafka/high_throughput/)