This tool helps to read data from Kafka topics using share groups and outputs it to standard output. Option Description ------ ----------- --bootstrap-server --command-config Consumer config properties file. Note that [command-property] takes precedence over this config. --command-property key=value. --consumer-config (DEPRECATED) Consumer config properties file. Note that [command- property] takes precedence over this config. This option will be removed in a future version. Use --command- config instead. --consumer-property properties in the form key=value. This option will be removed in a future version. Use --command- property instead. --enable-systest-events Log lifecycle events of the share consumer in addition to logging consumed messages. (This is specific for system tests.) --formatter The name of a class to use for formatting Kafka messages for display. (default: org.apache.kafka. tools.consumer. DefaultMessageFormatter) --formatter-config the message formatter. Note that [formatter-property] takes precedence over this config. --formatter-property The properties to initialize the message formatter. Default properties include: print.timestamp=true|false print.key=true|false print.offset=true|false print.delivery=true|false print.epoch=true|false print.partition=true|false print.headers=true|false print.value=true|false key.separator= line.separator= headers.separator= null.literal= key.deserializer= value.deserializer= header.deserializer= Users can also pass in customized properties for their formatter; more specifically, users can pass in properties keyed with 'key. deserializer.', 'value. deserializer.' and 'headers. deserializer.' prefixes to configure their deserializers. --group The share group id of the consumer. --help Print usage information. --key-deserializer deserializing keys. --max-messages The maximum number of messages to consume before exiting. If not set, consumption is continual. --property (DEPRECATED) The properties to initialize the message formatter. Default properties include: print.timestamp=true|false print.key=true|false print.offset=true|false print.delivery=true|false print.epoch=true|false print.partition=true|false print.headers=true|false print.value=true|false key.separator= line.separator= headers.separator= null.literal= key.deserializer= value.deserializer= header.deserializer= Users can also pass in customized properties for their formatter; more specifically, users can pass in properties keyed with 'key. deserializer.', 'value. deserializer.' and 'headers. deserializer.' prefixes to configure their deserializers. This option will be removed in a future version. Use --formatter- property instead. --reject If specified, messages are rejected as they are consumed. --reject-message-on-error If there is an error when processing a message, reject it instead of halting. --release If specified, messages are released as they are consumed. --timeout-ms If specified, exit if no message is available for consumption for the specified interval. --topic The topic to consume from. --value-deserializer deserializing values. --version Display Kafka version.