Skip to Content
Kafka权威指南
book

Kafka权威指南

by Neha Narkhede, Gwen Shapira, Todd Palino
January 2018
Beginner to intermediate
234 pages
7h 8m
Chinese
Posts & Telecom Press
Content preview from Kafka权威指南
深入
Kafka
81
不需要控制器的信息,而且也没必要知道如何去解析它。
0.10.0
版本的客户端会发送
version
1
的元数据请求,
0.10.0
版本的
broker
会返回
version
1
的响应,里面包含了控制器的
信息。如果
0.10.0
版本的客户端发送
version
1
的请求给
0.9.0
版本的
broker
,这个版本的
broker
不知道该如何处理这个请求,就会返回一个错误。这就是为什么我们建议在升级客户
端之前先升级
broker
,因为新的
broker
知道如何处理旧的请求,反过来则不然。
我们在
0.10.0
版本的
Kafka
里加入了 ApiVersionRequest——客户端可以询问
broker
支持哪
些版本的请求,然后使用正确的版本与
broker
通信。如果能够正确使用这个新功能,客户
端就可以与旧版本的
broker
通信,只要
broker
支持这个版本的协议。
5.5
 物理存储
Kafka
的基本存储单元是分区。分区无法在多个
broker
间进行再细分,也无法在同一个
broker
的多个磁盘上进行再细分。所以,分区的大小受到单个挂载点可用空间的限制(一
个挂载点由单个磁盘或多个磁盘组成,如果配置了
JBOD
,就是单个磁盘,如果配置了
RAID
,就是多个磁盘。请参考第
2
)。
在配置
Kafka
的时候,管理员指定了一个用于存储分区的目录清单——也就是 log.dirs
数的值(不要把它与存放错误日志的目录混淆了,日志目录是配置在
log4j.properties
文件
里的)。该参数一般会包含每个挂载点的目录。 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

精通機器學習

精通機器學習

Aurélien Géron
精通特征工程

精通特征工程

Alice Zheng, Amanda Casari
高效能PYTHON程式設計

高效能PYTHON程式設計

Micha Gorelick, Ian Ozsvald

Publisher Resources

ISBN: 9787115473271