Skip to content

An interactive kafka-prompt(kafka-shell) built on existing kafka command client

Notifications You must be signed in to change notification settings

ysn2233/kafka-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka-prompt

An intertactive auto-complete kafka client using c-bata/go-prompt

demo

Prerequisite

This command-line tool requires kafka console client installed on the filesystem. (In PATH or using absolutely path to call client executable)

Installation

Build from source

git clone https://github.com/ysn2233/kafka-prompt.git
cd kafka-prompt
make

The execuatable binary is located as ./bin/kaprompt

Feature

Provide auto-comppletion for kafka console commands and their optional arguments.

Built-on existing kafka-client

The auto-completion of kafka client command is predefined so make sure those client executable(eg. kafka-topic, kafka-console-consumer) have alreadly in your PATH. Kafka-prompt also supports any command ends with ".sh".

Memorize servers

If you have run a command with "--bootstrap-server/--broker-list/--zookeeper", the prompt will cache these server connected information. Next command without those options can auto add them to connect.

Support-autocompletion-commands

  • kafka-replica-verification
  • kafka-log-dirs
  • kafka-acls
  • kafka-delete-records
  • kafka-preferred-replica-election
  • kafka-console-producer
  • kafka-dump-log
  • zookeeper-shell
  • kafka-topics
  • kafka-console-consumer
  • kafka-consumer-groups
  • kafka-reassign-partitions
  • kafka-broker-api-versions
  • kafka-configs

Built-in commands

  • exit/quit Exit the shell
  • cluster boostrap/server/zookeeper Show current server connected

About

An interactive kafka-prompt(kafka-shell) built on existing kafka command client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages