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

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.

主站蜘蛛池模板: 策勒县| 清远市| 利川市| 炉霍县| 贵南县| 遂宁市| 巴林右旗| 东乡县| 舟山市| 镇远县| 博湖县| 阿荣旗| 高雄县| 绥芬河市| 兰考县| 孝感市| 平度市| 虞城县| 乐业县| 白朗县| 广灵县| 七台河市| 云梦县| 南乐县| 五原县| 司法| 孝义市| 信宜市| 蓝山县| 宜良县| 敦化市| 南雄市| 甘孜| 沙洋县| 进贤县| 金秀| 上林县| 交口县| 宁远县| 丰宁| 望谟县|