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佇列
- laravel,Lumen 使用Kafka佇列LaravelKafka佇列
- 訊息佇列之 Kafka佇列Kafka
- PHP Kafka 訊息佇列使用PHPKafka佇列
- kafka檢視topicKafka
- Linux基礎命令---lpq檢視列印佇列Linux佇列
- 阿里雲訊息佇列 Kafka-訊息檢索實踐阿里佇列Kafka
- 建立訊息佇列(Kafka)源表佇列Kafka
- “簡單”的訊息佇列與kafka佇列Kafka
- 訊息佇列Kafka學習總結佇列Kafka
- RabbitMQ、RocketMQ、Kafka延遲佇列實現MQKafka佇列
- 訊息佇列之Kafka——從架構技術重新理解Kafka佇列Kafka架構
- 訊息佇列的使用場景之kafka佇列Kafka
- CentOS 7.0 安裝配置 kafka 訊息佇列CentOSKafka佇列
- 快速理解Kafka分散式訊息佇列框架Kafka分散式佇列框架
- kafka 0.11檢視offset命令Kafka
- KOA + egg.js 整合 kafka 訊息佇列JSKafka佇列
- 技術分享| 訊息佇列Kafka群集部署佇列Kafka
- Oracle 檢查點佇列與增量檢查點Oracle佇列
- RabbitMQ,RocketMQ,Kafka 幾種訊息佇列的對比MQKafka佇列
- 佇列、阻塞佇列佇列
- 檢視Linux系統是否使用RAID陣列資訊LinuxAI陣列
- centos檢視版本資訊CentOS
- Oracle ASM檢視資訊OracleASM
- 29_檢查點佇列(checkpoint queue)佇列
- 佇列-單端佇列佇列
- KMQ:基於Apache Kafka的可靠性訊息佇列MQApacheKafka佇列
- Dynamics CRM 向檢視列新增自定義圖示和提示資訊
- 佇列 和 迴圈佇列佇列
- Linux 安全資訊檢視Linux
- 檢視weblogic版本資訊Web
- ExifTool for Macexif資訊檢視工具Mac
- 檢視Docker容器的資訊Docker
- 檢視 linux 版本資訊Linux
- 資訊檢視:蘋果有多大蘋果