Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build KafkaOffsetMonitor monitoring tools

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you about how to build KafkaOffsetMonitor monitoring tools. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

1. download

# download the following link manually at window7

Https://github.com/quantifind/KafkaOffsetMonitor/releases/tag/v0.2.1

[root@sht-sgmhadoopnn-01 app] # mkdir kafkaoffsetmonitor

[root@sht-sgmhadoopnn-01 app] # cd kafkaoffsetmonitor

# upload using rz command

[root@sht-sgmhadoopnn-01 kafkaoffsetmonitor] # rz

Rz waiting to receive.

Starting zmodem transfer. Press Ctrl+C to cancel.

Transferring KafkaOffsetMonitor-assembly-0.2.1.jar...

51696 KB 12924 KB/sec 00:00:04 0 Errors

You have mail in / var/spool/mail/root

[root@sht-sgmhadoopnn-01 kafkaoffsetmonitor] #

two。 Create a new kafkaMonitor.sh file with the following contents:

[root@sht-sgmhadoopnn-01 kafkaoffsetmonitor] # vi kafkaoffsetmonitor.sh

#! / bin/bash

Java-cp KafkaOffsetMonitor-assembly-0.2.1.jar\

Com.quantifind.kafka.offsetapp.OffsetGetterWeb\

-- zk 172.16.101.58:2181172.16.101.59:2181172.16.101.60:2181/kafka\

-- port 8089\

-- refresh 5.seconds\

-- retain 7.days

[root@sht-sgmhadoopnn-01 kafkaoffsetmonitor] # chmod + x * .sh

[root@sht-sgmhadoopnn-01 kafkaoffsetmonitor] #

Zk the addresses and ports written here are the addresses and ports of the zookeeper cluster. Should be consistent with host.name and clientPort in zookeeper.properties in the kafka/bin folder.

-- port this is the port of the software KafkaOffsetMonitor. Be careful not to use those famous port numbers, such as 80Dome 8080, etc. I adopted 8089.

Refresh this is the interval between software refreshes, not too short or too long.

-- retain this is the time the data is saved in the database.

3. Background start

[root@sht-sgmhadoopnn-01 kafkaoffsetmonitor] # nohup. / kafkaoffsetmonitor.sh &

Serving resources from: JarVlfileVuGUR rootUnix learnProjectAccording to KafkaoffsetmonitorUnitedKafkaOffsetMonitorMusi assemblyMAIQUE 0.2.1.jartransactions Universe offsetapp

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

SLF4J: Defaulting to no-operation (NOP) logger implementation

SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

Log4j:WARN No appenders could be found for logger (org.I0Itec.zkclient.ZkConnection).

Log4j:WARN Please initialize the log4j system properly.

Log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

Log4j:WARN No appenders could be found for logger (org.I0Itec.zkclient.ZkEventThread).

Log4j:WARN Please initialize the log4j system properly.

Log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

2016-12-25 22:00:24.252:INFO:oejs.Server:jetty-7.x.y-SNAPSHOT

2016-12-25 22:00:24.319:INFO:oejsh.ContextHandler:started o.e.j.s.ServletContextHandler {/, jarburex fileVuxrootLearnProjectAccording to KafkaoffsetmonitorCan KafkaOffsetMonitorlyassemblyMouse 0.2.1.jarDepositionUniverse offsetapp}

2016-12-25 22:00:24.328:INFO:oejs.AbstractConnector:Started SocketConnector@0.0.0.0:8089

4.IE browser opens

Http://172.16.101.55:8089

The above is the editor for you to share how to build KafkaOffsetMonitor monitoring tools, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report