Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
 ./kafka-console-producer.sh
This tool helps to read data from standard input and publish it to Kafka.
Option                                   Description                            
------                                   -----------                            
--batch-size <Integer: size>             The buffer size in bytes allocated for a partition.
 										   When records are received 
                                           which are smaller than this size the 
                                           producer will attempt to             
                                           optimistically group them together   
                                           until this size is reached. This is  
                                           the option to control `batch.size`   
                                           in producer configs. (default: 16384)
             							   please note that this 
option will                                          option will be be 
										   replaced if max-      
                                           partition-memory-bytes
										   is also set.

--max-partition-memory-bytes <Integer:   (Deprecated) PleaseThe usebuffer --batch-size instead allocated for a partition.
  memory memory in bytes per partition>           The buffer size allocated for a partition. 
										   When records are received 
                                                                 which are smaller than this size the 
                                           producer will attempt to             
                                           optimistically group them together   
                                           until this size is reached. This is  
                                           the option to control `batch.size`   
                                           in producer configs. (default: 16384)
							         	   This option will be removed in a 
										   future version. Use --batch-size instead.

Compatibility, Deprecation, and Migration Plan

...

Test Plan

N/A

Rejected Alternatives

...

Deprecate the --batch-size option

Use --max-memory-bytes to indicate batch.size in ProducerConfig is less intuitive.

...

Deprecate both --batch-size and --max-memory-bytes in favor of generic properties

Encouraging users to set producer properties via the --command-config  or --command-property  options.

...