This article is a mirror article of machine translation, please click here to jump to the original article.

View: 5413|Reply: 2

CentOS builds Kafka message middleware

[Copy link]
Posted on 12/12/2021 12:25:22 PM | | | |
Kafka is an open-source streaming platform developed by the Apache Software Foundation, written in Scala and Java. Kafka is a high-throughput distributed publish-subscribe messaging system that processes all the consumer's action flow data in the website. This action (web browsing, searching, and other user actions) is a key factor in many social functions on the modern web. This data is often resolved by processing logs and log aggregation due to throughput requirements. This is a viable solution for log data and offline analytics systems like Hadoop, but requiring the limitations of real-time processing. The purpose of Kafka is to unify online and offline message processing through Hadoop's parallel loading mechanism, and also to provide real-time messages through clustering.

Review:

Kafka operations for .NET/C# message queues [with source code]
https://www.itsvse.com/thread-9619-1-1.html

Kafka configures JMX remote monitoring
https://www.itsvse.com/thread-9968-1-1.html

First, I'm using a CentOS 8 system with Kafka version:kafka_2.13-3.0.0

Download the unzip command as follows:

Configure Kafka

Go to the /data/middleware/kafka_2.13-3.0.0/config folder and modify itserver.propertiesThe main amendments are as follows:

Launch Zookeeper and Kafka

Start command

Stop command

Register Zookeeper and Kafka as a service

Go to the /etc/systemd/system folder

Create a new zookeeper.service service file with the following configuration:
Start and set up the startup

Create a new kafka.service service file and configure it as follows:



Start and set up the startup


Check the status of the Zookeeper and Kafka services as shown in the following image:



Kafka default port:9092, zookeeper default port:2181thereinto19988 It's a JMX port!




Previous:CentOS system deployment nacos tutorial
Next:【Practical Combat】Kafka parameter tuning solves the problem of too large message body
 Landlord| Posted on 12/24/2021 11:25:13 AM |
JMX configuration, and the Linux environment can also directly modify the kafka-server-start.sh file, as follows:

Posted on 12/26/2021 4:58:13 PM |
Learn to learn。。。。。。
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com