kafka_consumer.pl [options] [file...]
The script connects to Kafka, subscribes to specified topic and outputs incomming messages.
consumer group id to use, by default it is "test-consumer"
topic to which to subscribe
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.