In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Install kafka manager
# cd / opt/ins/ [root@emm-kafka01-10 Mar 174Mar] # lltotal 292188-rwxr-xr-x 1 root root 166044032 Mar 13 15:58 jdk-8u102-linux-x64.rpm-rw-r--r-- 1 root root 50326212 Mar 13 16:14 kafka_2.12-1.1.0.tgzMui Mar r Muir-1 root root 60561847 Mar 14 11:06 kafka-manager-1.3.3.7 .zip-rw-r--r-- 1 root root 22261552 Mar 13 16:14 zookeeper-3.4.8.tar.gz [root@emm-kafka01-10 Murray 174 ins] # unzip kafka-manager-1.3.3.7.zip-d / usr/local/ [root@emm-kafka01-10 Murray 174 local] # ln-s kafka-manager-1.3.3.7/ kafka-manager [root@emm-kafka01-10 Murray 174 local] # lltotal 4drwxr-xr-x. 2 root root 6 Apr 11 2018 bindrwxr-xr-x. 2 root root 6 Apr 11 2018 etcdrwxr-xr-x. 2 root root 6 Apr 11 2018 gamesdrwxr-xr-x. 2 root root 6 Apr 11 2018 includelrwxrwxrwx 1 root root 17 Mar 14 09:51 kafka- > kafka_2.12-1.1.0/drwxr-xr-x 7 root root 94 Mar 14 10:12 kafka_2.12-1.1.0lrwxrwxrwx 1 root root 22 Mar 14 11:08 kafka-manager- > kafka-manager-1.3.3.7/drwxr-xr-x 6 root root 65 Mar 14 11:07 kafka-manager-1.3.3.7drwxr-xr-x. 2 root root 6 Apr 11 2018 libdrwxr-xr-x. 2 root root 6 Apr 11 2018 lib64drwxr-xr-x. 2 root root 6 Apr 11 2018 libexecdrwxr-xr-x. 2 root root 6 Apr 11 2018 sbindrwxr-xr-x. 5 root root 46 Apr 11 2018 sharedrwxr-xr-x. 2 root root 6 Nov 12 13:03 srclrwxrwxrwx 1 root root 15 Mar 13 18:20 zookeeper- > zookeeper-3.4.8drwxr-xr-x 11 root root 4096 Mar 13 18:22 zookeeper-3.4.8 [root@emm-kafka01-10 root@emm-kafka01 conf] # pwd/usr/local/kafka-manager/conf [root@emm-kafka01-10 conf] # lltotal 24 root root Jun 18 2017 application.conf-rw-r--r- -1 root root 27 Jun 5 2017 consumer.properties-rw-r--r-- 1 root root 2108 Jun 5 2017 logback.xml-rw-r--r-- 1 root root 1367 Jun 5 2017 logger.xml-rw-r--r-- 1 root root 7423 Jun 5 2017 routes # vim application.conf modifies kafka-manager.zkhosts= "localhost:2181" as follows: kafka-manager.zkhosts= "10.2.10.174 .10.175kafka-manager 2181Magi 10.2.176mm 2181 "other do not start kafka-manager [root@emm-kafka01-10 kafka-manager] # nohup bin/kafka-manager-Dconfig.file=/usr/local/kafka-manager/conf/application.conf-Dhttp.port=8080 & [3] 1600 [root@emm-kafka01-10 Mustang 174kafka-manager] # nohup: ignoring input and appending output to 'nohup.out' [root@emm-kafka01-10 Muhami 174 kafka-manager] # Netstat-lntup | grep 8080tcp6 00: 8080: * LISTEN 1600/java
Set environment variabl
Vim / etc/profile add the following content: export PATH=/usr/local/kafka/bin:/usr/local/kafka-manager/bin:/usr/local/zookeeper/bin:$PATHsource / etc/profile [root@emm-kafka01-10 Murmuri 174 bin] # which kafka-manager/ usr/local/kafka-manager/bin/kafka-manager
Startup script for kafka-manager
[root@emm-kafka01-10 Dconfig.file=/usr/local/kafka-manager/conf/application.conf 174 scripts] # chmod + x kafkamanagerstart.sh [root@emm-kafka01-10 Dconfig.file=/usr/local/kafka-manager/conf/application.conf 174 scripts] # cat kafkamanagerstart.sh #! / bin/bashsource / etc/profilenohup / usr/local/kafka-manager/bin/kafka-manager-Dconfig.file=/usr/local/kafka-manager/conf/application.conf-Dhttp.port=8080 & [root@emm-kafka01-10 Dconfig.file=/usr/local/kafka-manager/conf/application.conf 174 scripts] # sh kafkamanagerstart.sh [root@emm-kafka01-10 Muir 174 scripts] # nohup: appending output To 'nohup.out' [root@emm-kafka01-10 Murray 174 scripts] # netstat-lntup | grep 8080tcp6 0 0: 8080: * LISTEN 2727/java
Set Boot self-boot
[root@emm-kafka01-10murmur174scripts] # chmod + x / etc/rc.d/rc.local [root@emm-kafka01-10murmur174scripts] # echo "/ usr/bin/sh / opt/scripts/kafkamanagerstart.sh" > > / etc/rc.d/rc.local kafka monitoring metrics survey kafka version supports the number of records per second written to the cluster by the cluster dimensions above API,0.9 and above java 1.8 The number of bytes written to the cluster's largest topic automatic sorting topic dimension offset earliest offset latest available offset record seconds, minutes, hours Automatically sort the list of consumer groups under topic every day according to the write speed consumer dimension lag data volume sort consumer_group_id final offset current offset partition number leader id leader host_name stacking lag consumption speed per second, no minute, per hour, every day
After startup, open it from the browser and display the following reference link: https://blog.csdn.net/isea533/article/details/73727485
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.