public class Seek {
private static Logger seekLog = Logger.getLogger(Seek.class.getName());
public static void main(String[] args) {
if (args.length == 0) {
System.out.println("请输入需要查询的Topic");
return;
}
HashMap needToCheckTopicMap = checkTopic(args);
if (needToCheckTopicMap.isEmpty()) {
return;
}
//开启循环查询
String topic;
String subId;
String hbaseSubId;
String RedisSubId;
Iterator map1it = needToCheckTopicMap.entrySet().iterator();
while (map1it.hasNext()) {
Map.Entry<String, String> entry = (Map.Entry<String, String>) map1it.next();
topic = entry.getKey();
subId = entry.getValue();
String[] splitSubId = subId.split(",");
hbaseSubId = splitSubId[0];
RedisSubId = splitSubId[1];
if (!hbaseSubId
Datahub 根据传入的topic,查看相应的消费情况
最新推荐文章于 2024-06-06 21:59:46 发布