[
https://issues.apache.org/jira/browse/KAFKA-6041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chia-Ping Tsai resolved KAFKA-6041.
-----------------------------------
Resolution: Duplicate
> "--producer.config" option doesn't work
> ---------------------------------------
>
> Key: KAFKA-6041
> URL: https://issues.apache.org/jira/browse/KAFKA-6041
> Project: Kafka
> Issue Type: Bug
> Components: core
> Affects Versions: 0.11.0.0
> Reporter: Phoenix_Dad
> Priority: Minor
>
> The configured parameters in the config\producer.properties file will be
> overwritten by the parameter default values.
> For example:
> //modify the config\producer.properties file:
> bootstrap.servers=kafkahost:9092
> linger.ms=2000
> batch.size=1024
> //excute the bin\Kafka-console-producer.sh
> bin\Kafka-console-producer --topic test --producer.config
> config/producer.properties
> //while excuting the ConsoleProducer Class, the batch.size is set to 200,
> the linger.ms is set to 1000, the bootstrap.servers is set to localhost:9092.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)