question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to pass consumer configuration to Kafka

See original GitHub issue

org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties#setConfiguration is never getting called.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
stphngrtzcommented, Nov 2, 2017

Sorry, but this is still not working for me. I’ve created a simple example repository:

As you can see, my custom configuration is not getting passed on to Kafka.

2017-11-02 09:03:05.771  INFO 9084 --- [           main] o.a.k.clients.consumer.ConsumerConfig    : ConsumerConfig values: 
	auto.commit.interval.ms = 100
	auto.offset.reset = latest
	bootstrap.servers = [localhost:9094]
	check.crcs = true
	client.id = consumer-2
	connections.max.idle.ms = 540000
	enable.auto.commit = false
	exclude.internal.topics = true
	fetch.max.bytes = 52428800
	fetch.max.wait.ms = 500
	fetch.min.bytes = 1
	group.id = anonymous.9e662234-af6b-4ad0-8765-0a80256a9d94
	heartbeat.interval.ms = 3000
	interceptor.classes = null
	key.deserializer = class org.apache.kafka.common.serialization.ByteArrayDeserializer
	max.partition.fetch.bytes = 1048576
	max.poll.interval.ms = 300000
	max.poll.records = 500
	metadata.max.age.ms = 300000
	metric.reporters = []
	metrics.num.samples = 2
	metrics.sample.window.ms = 30000
	partition.assignment.strategy = [class org.apache.kafka.clients.consumer.RangeAssignor]
	receive.buffer.bytes = 65536
	reconnect.backoff.ms = 50
	request.timeout.ms = 305000
	retry.backoff.ms = 100
	sasl.kerberos.kinit.cmd = /usr/bin/kinit
	sasl.kerberos.min.time.before.relogin = 60000
	sasl.kerberos.service.name = null
	sasl.kerberos.ticket.renew.jitter = 0.05
	sasl.kerberos.ticket.renew.window.factor = 0.8
	sasl.mechanism = GSSAPI
	security.protocol = PLAINTEXT
	send.buffer.bytes = 131072
	session.timeout.ms = 10000
	ssl.cipher.suites = null
	ssl.enabled.protocols = [TLSv1.2, TLSv1.1, TLSv1]
	ssl.endpoint.identification.algorithm = null
	ssl.key.password = null
	ssl.keymanager.algorithm = SunX509
	ssl.keystore.location = null
	ssl.keystore.password = null
	ssl.keystore.type = JKS
	ssl.protocol = TLS
	ssl.provider = null
	ssl.secure.random.implementation = null
	ssl.trustmanager.algorithm = PKIX
	ssl.truststore.location = null
	ssl.truststore.password = null
	ssl.truststore.type = JKS
	value.deserializer = class org.apache.kafka.common.serialization.ByteArrayDeserializer

Could you give me a hint what I’m doing wrong?

0reactions
zafaralecommented, Feb 20, 2019

I am trying to use the example above with SpringBoot 2.1.0 and Spring-CloudStream 2.1.1 and it doesnt work.

Can anyone help, in my specific use case i need to customise the consumer and producer properties to be able to achieve desired results

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kafka Consumer Configurations for Confluent Platform
An id string to pass to the server when making requests. The purpose of this is to be able to track the source...
Read more >
Configure Kafka Producer and Consumer in spring boot
This post describes how to configure Kafka producer and consumer in spring boot application and also explains how to create service classes ...
Read more >
Kafka - How to fail gracefully - Quarkus
To enable this strategy, configure the channel with: mp. · You can try this strategy with Gist, or run it using: · If...
Read more >
Unable to consume Kafka messages within Spring Boot
No need for another configuration class. My consumer: import lombok.extern.slf4j.Slf4j; import org.springframework.kafka.annotation.
Read more >
Kafka Connectors fails to Initialize with TLS-Trust-Store ...
In specific scenarios where Kafka configuration is required to load trust store ... ConnectionException: Failed to construct kafka consumer"
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found