kafka 檢視佇列資訊
版本2.11
前提是配置好sasl,可以參考:http://www.cnblogs.com/iamsach/p/9234624.html
配置好之後:
在bin目錄下執行:./kafka-consumer-groups.sh -bootstrap-server abc.db.cloud.com:9016 -list
報錯:
Error: Executing consumer group command failed due to Request METADATA failed on brokers List
然後我又執行:./kafka-consumer-groups.sh -bootstrap-server abc.db.cloud.com:9016 -describe -group vcs
報錯:
[2018-07-25 19:55:57,914] WARN Bootstrap broker abc.db.cloud.com:9016 (id: -1 rack: null) disconnected (org.apache.kafka.clients.NetworkClient)
Error: Executing consumer group command failed due to The consumer group command timed out while waiting for group to initialize:
然後又執行:./kafka-consumer-groups.sh -bootstrap-server abc.db.cloud.com:9016 -describe -group vcs --command-config /usr/share/kafka/config/consumer.properties (只是多了一個指向consumer.properties的配置項)
報錯:
Exception in thread "main" java.lang.IllegalArgumentException: Could not find a 'KafkaClient' entry in the JAAS configuration. System property 'java.security.auth.login.config' is not set
修改./bin/kafka-consumer-group.sh:
[root@Server bin]# cat ./kafka-consumer-groups.sh
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
export KAFKA_OPTS=" -Djava.security.auth.login.config=/usr/share/kafka/config/kafka_client_jaas.conf"
exec $(dirname $0)/kafka-run-class.sh kafka.admin.ConsumerGroupCommand "$@"
再執行:./kafka-consumer-groups.sh -bootstrap-server abc.db.cloud.com:9016 -describe -group vcs --command-config /usr/share/kafka/config/consumer.properties
不再報錯,可以顯示:
TOPIC PARTITION CURRENT-OFFSET LOG-END-OFFSET LAG CONSUMER-ID HOST CLIENT-ID
tv.tpvcs.setvcs 2 13 13 0 - - -
tv.tpvcs.setvcs 20 7 7 0 - - -
相關文章
- kafka 訊息佇列Kafka佇列
- Kafka訊息佇列Kafka佇列
- 訊息佇列Kafka「檢索元件」重磅上線!佇列Kafka元件
- 阿里雲訊息佇列 Kafka-訊息檢索實踐阿里佇列Kafka
- PHP Kafka 訊息佇列使用PHPKafka佇列
- 建立訊息佇列(Kafka)源表佇列Kafka
- 訊息佇列Kafka學習總結佇列Kafka
- “簡單”的訊息佇列與kafka佇列Kafka
- Kafka 延時佇列&重試佇列Kafka佇列
- KOA + egg.js 整合 kafka 訊息佇列JSKafka佇列
- 訊息佇列的使用場景之kafka佇列Kafka
- 訊息佇列之Kafka——從架構技術重新理解Kafka佇列Kafka架構
- 技術分享| 訊息佇列Kafka群集部署佇列Kafka
- laravel,Lumen 使用Kafka佇列LaravelKafka佇列
- Linux基礎命令---lpq檢視列印佇列Linux佇列
- [訊息佇列]kafka高效能/高吞吐量佇列Kafka
- RabbitMQ,RocketMQ,Kafka 幾種訊息佇列的對比MQKafka佇列
- oracle 資料透過goldengate 實時同步到kafka訊息佇列中OracleGoKafka佇列
- Java訊息佇列:RabbitMQ與Kafka的整合與應用Java佇列MQKafka
- KMQ:基於Apache Kafka的可靠性訊息佇列MQApacheKafka佇列
- kafka檢視topicKafka
- Debezium vs OGG vs Tapdata:如何實時同步 Oracle 資料到 Kafka 訊息佇列?OracleKafka佇列
- 實時數倉之Flink消費kafka訊息佇列資料入hbaseKafka佇列
- 訊息佇列之事務訊息,RocketMQ 和 Kafka 是如何做的?佇列MQKafka
- RabbitMQ 訊息佇列之佇列模型MQ佇列模型
- 訊息佇列的作用以及kafka和activemq的對比佇列KafkaMQ
- 微服務02 Kafka訊息佇列, Dubbo, Springcloud微服務框架, Nacos微服務Kafka佇列SpringGCCloud框架
- 訊息佇列系列一:訊息佇列應用佇列
- 訊息佇列佇列
- RabbitMQ、RocketMQ、Kafka延遲佇列實現MQKafka佇列
- 解鎖Kafka等訊息佇列中介軟體的測試之道Kafka佇列
- 訊息佇列(MQ)佇列MQ
- [Redis]訊息佇列Redis佇列
- [訊息佇列]rocketMQ佇列MQ
- [訊息佇列]RabbitMQ佇列MQ
- RabbitMQ訊息佇列MQ佇列
- Linux 安全資訊檢視Linux
- 檢視weblogic版本資訊Web