Produce, consume, and manage Kafka topics with lag monitoring and data export. Use when publishing messages, consuming topics, monitoring consumer lag.
KAFKA_BOOTSTRAPBootstrap servers (default: localhost:9092)
scripts/script.sh KAFKA_BOOTSTRAP
KAFKA_ZOOKEEPERZookeeper address (default: localhost:2181)
scripts/script.sh KAFKA_ZOOKEEPER
KAFKA_HOMEKafka installation directory
scripts/script.sh KAFKA_HOME
topicsList all topics with partition counts
scripts/script.sh topics
create-topicCreate topic (partitions, replication factor)
scripts/script.sh create-topic <name> [p] [r]
describeDetailed topic description
scripts/script.sh describe <topic>
produceProduce a message (optional key)
scripts/script.sh produce <topic> <msg> [key]
consumeConsume messages (default: 10, from-beginning)
scripts/script.sh consume <topic> [count] [from]
groupsList all consumer groups
scripts/script.sh groups
lagShow consumer group lag
scripts/script.sh lag <group>
configShow connection config and available tools
scripts/script.sh config
statusCluster health and status check
scripts/script.sh status
delete-topicDelete a topic (with confirmation)
scripts/script.sh delete-topic <topic>
partitionsIncrease topic partitions
scripts/script.sh partitions <topic> <count>
offsetsShow earliest/latest offsets
scripts/script.sh offsets <topic>
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
共 2 个版本