Kafka 使用-安装

官方网站

Kafka 是什么?

Apache Kafka is an open-source distributed event streaming platform used by thousands of companies for high-performance data pipelines, streaming analytics, data integration, and mission-critical applications.

Apache Kafka 是一个开源分布式事件流平台,被数千家公司用于高性能数据管道、流分析、数据集成和关键任务应用程序。

安装步骤

1、下载安装包

下载地址:​​https://www.apache.org/dyn/closer.cgi?path=/kafka/2.8.0/kafka_2.13-2.8.0.tgz​

2、上传到服务器并解压压缩包

tar -xzf kafka_2.13-2.8.0.tgz
cd kafka_2.13-2.8.0


Kafka 使用-安装_zookeeper

3、启动 zookeeper

官方文档,说,可能很快就不用依赖Apache Kafka了。

因为目前启动目录 bin 下已经包含了 zookeeper-server-start.sh 启动脚本。

4、启动 Kafka Server

# Start the Kafka broker service
$ bin/kafka-server-start.sh config/server.properties


Kafka 使用-安装_Kafka_02

但是当前窗口不能关闭,一旦关闭,Kafka 就停了。

至此,Kafka Server 安装完成。