kafka-utils

module
v0.0.0-...-8ef850e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2020 License: Apache-2.0

README

kafka-utils

Utils for working with Kafka

Installation

To install, run

go get github.com/tmkarthi/kafka-utils/...

simple-kafka-producer

Usage:
  simple-kafka-producer [OPTIONS]

Application Options:
  -s=         Kafka server host (default: localhost:9092)
  -t=         Topic to publish to (default: sample)
  -k=         Message Key. If -m is set as +, this should be either '+' for reading from stdin or
              key value for sending same key for all messages.
  -m=         File containing message value. If specified as '-', will read from stdin till an empty
              line is encountered. If specified as '+', every line in stdin will be published as one
              message till killed through ctrl+c. If value of '+' is accompanied by -k with '+',
              every odd numbered lines will be considered as key.

Help Options:
  -h, --help  Show this help message

simple-kafka-consumer

Usage:
  simple-kafka-consumer [OPTIONS]

Application Options:
  -s=            Kafka server host (default: localhost:9092)
  -t=            Topic to read from (default: sample)
  -o=            Output file. Specify '-' for printing to the console (default: -)
  -c=            ConsumerGroup name (default: simple-consumer)
      --use-ssl  Use SSL

Help Options:
  -h, --help     Show this help message

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL