Kafka Deployment 2022-01-28 15:24:36 Views:45 Likes:0 Comments:0 Download the latest Kafka release and extract it: wget https://dlcdn.apache.org/kafka/3.1.0/kafka_2.12-3.1.0.tgz --no-check-certificate Config Kafka Broker `server.properties` ``` #broker.id=0 log.dirs=/data/kafka zookeeper.connect=test01:2181,test02:2181,test03:2181/kafka ``` Copy To All Nodes ``` scp -r kafka_2.12-3.1.0/ test02:~ scp -r kafka_2.12-3.1.0/ test03:~ ``` Start kafka service ``` ssh test01 'cd kafka_2.12-3.1.0 && bin/kafka-server-start.sh -daemon config/server.properties' ssh test02 'cd kafka_2.12-3.1.0 && bin/kafka-server-start.sh -daemon config/server.properties' ssh test03 'cd kafka_2.12-3.1.0 && bin/kafka-server-start.sh -daemon config/server.properties' ``` Run Kafka Ui with `kafka-ui` ``` docker run -d --name=kafkaui -p 19092:8080 \ --add-host test01:192.168.0.161 \ --add-host test02:192.168.0.162 \ --add-host test03:192.168.0.163 \ -e KAFKA_CLUSTERS_0_NAME=kafka01 \ -e KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=test01:9092 \ -d provectuslabs/kafka-ui:latest ``` with `kafdrop` ``` docker run -d --name=kafkaui -p 19092:9000 \ --add-host test01:192.168.0.161 \ --add-host test02:192.168.0.162 \ --add-host test03:192.168.0.163 \ -e KAFKA_BROKERCONNECT=test01:9092,test02:9092,test03:9092 \ -e JVM_OPTS="-Xms32M -Xmx64M" \ -e SERVER_SERVLET_CONTEXTPATH="/" \ obsidiandynamics/kafdrop ``` visit web ui http://test01:19092 Loading article… Previous install kubectl plugins Next bind9 0 likes 45 views Weibo WeChat Tencent Weibo QQ Zone RenRen Submit Sign in to leave a comment. No Leanote account? Sign up now. 0 comments More comments
No Leanote account? Sign up now.