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权威指南
附录A
在其他操作系统上安装
Kafka
Kafka
基本上就是一个
Java
应用程序,所以它可以运行在任何一个可以安装
JRE
的系统
上。不过,它针对
Linux
系统进行了优化,因此可以获得最好的性能。如果让它运行在
其他系统上,有可能会出现与特定操作系统相关的问题。所以,在桌面操作系统上进行
Kafka
开发或测试时,最好能够让它运行在虚拟机里,这个虚拟机最好能与生产环境的配
置相匹配。
A.1
 在
Windows
上安装
Kafka
截止到
Windows 10
,可以通过两种方式来运行
Kafka
。传统的方式是使用本地的
Java
安装
包。
Windows 10
用户还可以使用
Windows
Linux
子系统。推荐使用第二种方式,因为
它提供了与生产环境最为相似的配置,所以这里就从这种方式开始说起。
A.1.1
 使用
Windows
Linux
子系统
如果使用的是
Windows 10
,就可以通过
Windows
Linux
子系统(
WSL
)来安装原生的
Ubuntu
支持。在本书英文版出版时,微软仍然只是把它当成一个实验特性。它有点像是一
个虚拟机,但不像虚拟机那样需要那么多资源,却提供了更丰富的系统集成。
可以按照微软开发者网络
Bash on Ubuntu on Windows
https://msdn.microsoft.com/en-us/
commandline/wsl/about
)页面所提供的说明来安装
WSL
。安装完
WSL
后,需要通过 apt-
get 来安装
JDK
$ sudo apt-get install openjdk-7-jre-headless ...
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