Kafka cluster construction and ZK cluster construction

Time:2021-10-21

Kafka Reprint:https://segmentfault.com/a/11…
ZK Reprint:https://segmentfault.com/a/11…
Compare the two. In addition, when checking Kafka messages, logs are constantly displayed. I don’t know how to close them. There are children’s shoes that can be pointed out

Be sure to start zookeeper first and then Kafka. The sequence cannot be changed.
Close Kafka first and then zookeeper.

Zookeeper startup:
Execute on three machines: zkserver.sh start
Check zookeeper status: zkserver.sh status
Close: zkserver.sh stop

Kafka start
(note that this command must be executed under Kafka’s installation home directory)
Execute the following commands on each of the three machines:
bin/kafka-server-start.sh ../config/server.properties &
Close: bin / kafka-server-stop.sh

Recommended Today

Swift advanced (XV) extension

The extension in swift is somewhat similar to the category in OC Extension can beenumeration、structural morphology、class、agreementAdd new features□ you can add methods, calculation attributes, subscripts, (convenient) initializers, nested types, protocols, etc What extensions can’t do:□ original functions cannot be overwritten□ you cannot add storage attributes or add attribute observers to existing attributes□ cannot add parent […]