官术网_书友最值得收藏!

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:

  1. 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
  1. Create the KAFKA_HOME environment variable as follows:
      > export KAFKA_HOME=/opt/kafka_2.11-2.0.0
  1. 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).

主站蜘蛛池模板: 上虞市| 临桂县| 旬邑县| 出国| 焦作市| 塘沽区| 沈阳市| 延吉市| 军事| 万荣县| 漾濞| 香格里拉县| 丹凤县| 偏关县| 桐庐县| 阜阳市| 阳春市| 凤翔县| 兴安盟| 永春县| 灵台县| 清徐县| 五台县| 南康市| 卫辉市| 梅州市| 宜城市| 肥西县| 来安县| 永定县| 葫芦岛市| 德兴市| 滨州市| 安溪县| 叶城县| 岐山县| 上林县| 额济纳旗| 博爱县| 北辰区| 揭阳市|