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
Click to show internal directories.
Click to hide internal directories.