kafka_producer.pl [options] [file...]
The script reads messages from the files or stdin and publishes them to Kafka. Each line is considered as a separate message and may contain also a key separated by TAB.
topic into which produce messages
comma separated list of brokers. For example: broker1.mydomain:9092,broker2.mydomain:9092.
broker1.mydomain:9092,broker2.mydomain:9092
path to CA certificate. If not specified then plaintext protocol is used to connect to broker.
username and password for authentication if required
print additional debugging information
To install Kafka::Librd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Kafka::Librd
CPAN shell
perl -MCPAN -e shell install Kafka::Librd
For more information on module installation, please visit the detailed CPAN module installation guide.