Kafka 使用-安装

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

image

3、启动 zookeeper

如果本地没有安装 Zookeeper,可以参考《Apache Zookeeper 使用-安装》博客 安装一个单机版 Apache Kafka。

官方文档,说,可能很快就不用依赖Apache Kafka了。
因为目前启动目录 bin 下已经包含了 zookeeper-server-start.sh 启动脚本。

4、启动 Kafka Server

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

image

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

至此,Kafka Server 安装完成。

本文来自博客园,作者:不安分的黑娃,转载请注明原文链接:https://www.cnblogs.com/lihw-study/p/15201346.html

原文地址:https://www.cnblogs.com/lihw-study/p/15201346.html