producer.properties 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Licensed to the Apache Software Foundation (ASF) under one or more
  2. # contributor license agreements. See the NOTICE file distributed with
  3. # this work for additional information regarding copyright ownership.
  4. # The ASF licenses this file to You under the Apache License, Version 2.0
  5. # (the "License"); you may not use this file except in compliance with
  6. # the License. You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. # see kafka.producer.ProducerConfig for more details
  16. ############################# Producer Basics #############################
  17. # list of brokers used for bootstrapping knowledge about the rest of the cluster
  18. # format: host1:port1,host2:port2 ...
  19. metadata.broker.list=localhost:9092
  20. # name of the partitioner class for partitioning events; default partition spreads data randomly
  21. #partitioner.class=
  22. # specifies whether the messages are sent asynchronously (async) or synchronously (sync)
  23. producer.type=sync
  24. # specify the compression codec for all data generated: none, gzip, snappy, lz4.
  25. # the old config values work as well: 0, 1, 2, 3 for none, gzip, snappy, lz4, respectively
  26. compression.codec=none
  27. # message encoder
  28. serializer.class=kafka.serializer.DefaultEncoder
  29. # allow topic level compression
  30. #compressed.topics=
  31. ############################# Async Producer #############################
  32. # maximum time, in milliseconds, for buffering data on the producer queue
  33. #queue.buffering.max.ms=
  34. # the maximum size of the blocking queue for buffering on the producer
  35. #queue.buffering.max.messages=
  36. # Timeout for event enqueue:
  37. # 0: events will be enqueued immediately or dropped if the queue is full
  38. # -ve: enqueue will block indefinitely if the queue is full
  39. # +ve: enqueue will block up to this many milliseconds if the queue is full
  40. #queue.enqueue.timeout.ms=
  41. # the number of messages batched at the producer
  42. #batch.num.messages=