to_kafka

command
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2016 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

to_kafka reads delimited data from stdin and writes it to Kafka.

Usage

Supported command line options are

  to_kafka [OPTIONS] topic

Application Options:
  -b, --brokers=   Broker addresses (can be given multiple times) (localhost:9092)
  -d, --delimiter= Delimiter byte to use when reading stdin. Remember to either use single quotes around the option or quote the
                   backslash (\\n instead of \n) if using escape sequences (\n)
  -v, --verbose    Print extra debugging cruft to stderr

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

Arguments:
  topic:           Topic to write to

To read newline-delimited data from stdin and write it to topic 'sometopic':

to_kafka sometopic

Piping a file to Kafka:

cat somefile|to_kafka sometopic

Use comma as a delimiter:

echo -n 'herp,derp,durr'|to_kafka -d, sometopic

Jump to

Keyboard shortcuts

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