[ https://issues.apache.org/jira/browse/KAFKA-6041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16198392#comment-16198392 ]
ASF GitHub Bot commented on KAFKA-6041: --------------------------------------- GitHub user wujianping10043419 opened a pull request: https://github.com/apache/kafka/pull/4050 KAFKA-6041: "--producer.config" option doesn't work" 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. The correct way is to overwrite the default parameters values by configured values. You can merge this pull request into a Git repository by running: $ git pull https://github.com/wujianping10043419/kafka wjp-1010 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/4050.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #4050 ---- commit 03348f4541365ec5b4e1dd69cd711a8245c84703 Author: 10043419 <wu.jianp...@zte.com.cn> Date: 2017-10-10T07:26:08Z "--producer.config" option doesn't work" ---- > "--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 (v6.4.14#64029)