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
159
从集群里手动删除主题的过程如下。
(1)
关闭集群里所有的
broker
(2)
删除
Zookeeper
路径
/brokers/topics/TOPICNAME
,注意要先删除节点下的子节点。
(3)
删除每个
broker
的分区目录,这些目录的名字可能是 TOPICNAME-NUM,其中 NUM 是指分
区的
ID
(4)
重启所有的
broker
9.8
 总结
运行一个
Kafka
集群需要付出很大的努力,为了让
Kafka
保持巅峰状态,需要做大量的配
置和维护。我们在这一章里介绍了
Kafka
的很多日常操作,比如经常会用到的主题管理和
客户端配置;也介绍了一些用于诊断问题的复杂操作,比如检查日志片段;最后还介绍了
一些不安全的操作,这些操作在特殊的情况下可以帮你解决问题。通过执行这些操作,你
就可以更好地管理
Kafka
集群。
当然,如果没有进行适当的监控,管理集群就是一个不可能完成的任务。第
10
章将会讨
论如何对
broker
和集群的健康状况以及操作进行监控,这样就可以知道
Kafka
的运行状态
了。我们也会提供一些有关客户端(包括生产者和消费者)监控的最佳实践。
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