- Apache Kafka Quick Start Guide
- Raúl Estrada
- 166字
- 2021-07-02 14:26:53
Kafka installation on Linux
Open the Apache Kafka download page, http://kafka.apache.org/downloads, as in Figure 1.1:

Figure 1.1: Apache Kafka download page
At the time of writing, the current Apache Kafka version is 2.0.0 as a stable release. Remember that, since version 0.8.x, Kafka is not backward-compatible. So, we cannot replace this version for one prior to 0.8. Once you've downloaded the latest available release, let's proceed with the installation.
Remember for macOS users, replace the directory /opt/ with /usr/local .
Follow these steps to install Kafka in Linux:
- Extract the downloaded file, kafka_2.11-2.0.0.tgz, in the /opt/ directory as follows:
> tar xzf kafka_2.11-2.0.0.tgz
- Create the KAFKA_HOME environment variable as follows:
> export KAFKA_HOME=/opt/kafka_2.11-2.0.0
- Add the Kafka bin directory to the PATH variable as follows:
> export PATH=$PATH:$KAFKA_HOME/bin
Now Java, Scala, and Kafka are installed.
To do all of the previous steps from the command line, there is a powerful tool for macOS users called brew (the equivalent in Linux would be yum).
推薦閱讀
- 手機安全和可信應用開發指南:TrustZone與OP-TEE技術詳解
- UI設計基礎培訓教程
- Python數據可視化之Matplotlib與Pyecharts實戰
- Python Data Analysis Cookbook
- Learning Vaadin 7(Second Edition)
- Oracle 18c 必須掌握的新特性:管理與實戰
- Building Microservices with .NET Core
- ServiceNow:Building Powerful Workflows
- Kotlin開發教程(全2冊)
- Spring MVC+MyBatis開發從入門到項目實踐(超值版)
- 從程序員角度學習數據庫技術(藍橋杯軟件大賽培訓教材-Java方向)
- Python程序設計教程
- Learning Unreal Engine Game Development
- The Statistics and Calculus with Python Workshop
- C++17 By Example