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

Apache Kafka

Kafka is message broker which can be connected to any real-time framework available on the market. In this book, we will use Kafka often for all types of examples. We will use Kafka as a data source which keeps data from files in queues for further processing. Download Kafka from https://www.apache.org/dyn/closer.cgi?path=/kafka/0.10.1.1/kafka_2.11-0.10.1.1.tgz to your local machine. Once the kafka_2.11-0.10.1.1.tgz file is downloaded, extract the files using the following command:

    cp kafka_2.11-0.10.1.1.tgz /home/ubuntu/demo/kafka
    cd /home/ubuntu/demo/kafka
    tar -xvf kafka_2.11-0.10.1.1.tgz

The following files and folders are extracted as seen in the following screenshot:

Change the listener's property in the server.properties file. It should be PLAINTEXT://localhost:9092.

To start Kafka use the following commands:

    /bin/zookeeper-server-start.sh config/zookeeper.properties
    /bin/kafka-server-start.sh config/server.properties

Kafka will start on your local machine. Topics will be created later on as per the need. Let's move on to the NiFi setup and example.

主站蜘蛛池模板: 潢川县| 石首市| 开江县| 汶上县| 沙雅县| 西安市| 基隆市| 沧州市| 永胜县| 珲春市| 清苑县| 祥云县| 青冈县| 大名县| 寿光市| 高清| 孝感市| 临沧市| 都昌县| 双鸭山市| 同江市| 松江区| 桐城市| 丰宁| 诸城市| 元氏县| 乡城县| 隆昌县| 清远市| 砚山县| 金坛市| 丹寨县| 章丘市| 德惠市| 云浮市| 潜山县| 黄梅县| 大关县| 江津市| 鲁甸县| 江川县|