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权威指南
构建数据管道
107
group.id:具有相同
group id
worker
属于同一个
Connect
集群。集群的连接器和它们
的任务可以运行在任意一个
worker
上。
key.converter value.converter
Connect
可以处理存储在
Kafka
里的不同格式的
数据。这两个参数分别指定了消息的键和值所使用的转换器。默认使用
Kafka
提供的
JSONConverter
,当然也可以配置成
Confluent Schema Registry
提供的
AvroConverter
有些转换器还包含了特定的配置参数。例如,通过将
key.converter.schema.enable 设置成
true 或者 false 来指定
JSON
消息是否可以包含
schema
。值转换器也有类似的配置,不过
它的参数名是 value.converter.schema.enable
Avro
消息也包含了
schema
,不过需要通
key.converter.schema.registry.url value.converter.schema.registry.url 来指定
Schema Registry
的位置。
我们一般通过
Connect
REST API
来配置和监控 rest.host.name rest.port 连接器。
你可以为
REST API
指定特定的端口。
在启动
worker
集群之后,可以通过
REST API
来验证它们是否运行正常。
gwen$ curl http://localhost:8083/ ...
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