- Practical Real-time Data Processing and Analytics
- Shilpi Saxena Saurabh Gupta
- 140字
- 2021-07-08 10:23:12
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.
推薦閱讀
- OpenStack Cloud Computing Cookbook(Third Edition)
- Progressive Web Apps with React
- Instant Apache Stanbol
- JavaScript+jQuery網頁特效設計任務驅動教程(第2版)
- 劍指Offer(專項突破版):數據結構與算法名企面試題精講
- 秒懂設計模式
- Building a Quadcopter with Arduino
- C語言程序設計學習指導與習題解答
- Spring Boot Cookbook
- OpenStack Orchestration
- Java高并發核心編程(卷1):NIO、Netty、Redis、ZooKeeper
- Java程序員面試筆試寶典(第2版)
- Building Wireless Sensor Networks Using Arduino
- Access 2010數據庫應用技術實驗指導與習題選解(第2版)
- Advanced UFT 12 for Test Engineers Cookbook