You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Phoenix_Dad (JIRA)" <ji...@apache.org> on 2017/10/10 09:05:00 UTC
[jira] [Created] (KAFKA-6041) "--producer.config" option doesn't
work
Phoenix_Dad created KAFKA-6041:
----------------------------------
Summary: "--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)