consumer

command
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

README

kafka-console-consumer

A simple command line tool to consume partitions of a topic and print the messages on the standard output.

Usage

Minimum invocation

    kafka-console-consumer -topic=test -brokers=kafka1:9092

In order to configure kafka brokers environment variable can be used

    export KAFKA_PEERS=kafka1:9092,kafka2:9092,kafka3:9092
    kafka-console-consumer -topic=test

You can specify the offset you want to start at. It can be either oldest, newest. The default is newest.

    kafka-console-consumer -topic=test -offset=oldest
    kafka-console-consumer -topic=test -offset=newest

You can specify the partition(s) you want to consume as a comma-separated list. The default is all.

    kafka-console-consumer -topic=test -partitions=1,2,3

To display all command line options:

    kafka-console-consumer -help

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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