You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by wujianping10043419 <gi...@git.apache.org> on 2017/10/10 09:06:36 UTC

[GitHub] kafka pull request #4050: KAFKA-6041: "--producer.config" option doesn't wor...

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...@zte.com.cn>
Date:   2017-10-10T07:26:08Z

    "--producer.config" option doesn't work"

----


---