Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kafka_group not working with kafka > 2.1 #315

Closed
splushii opened this issue Jan 28, 2020 · 9 comments
Closed

kafka_group not working with kafka > 2.1 #315

splushii opened this issue Jan 28, 2020 · 9 comments
Labels

Comments

@splushii
Copy link

Using the kafka_group consumer with a Kafka 2.3 cluster results in lost messages, duplicated messages and abnormally high load and low throughput. Using a Kafka 2.1 cluster works well. I am not sure of the reason but I suspect that the consumer offset change (introduced in Kafka 2.2) is not supported by ruby-kafka (due to the compatibility chart). But these are just speculations that made me try out Kafka 2.1, nothing I have confirmed.

The complete plugin config for reference:

    <source>
      @type kafka_group

      brokers              log-kafka-bootstrap.log.svc.cluster.local:9093
      consumer_group       fluentd
      topics               test
      format               json
      time_source          record
      time_format          "%iso8601"
      start_from_beginning false
      max_wait_time        5
      max_bytes            1048576

      username        "#{ENV['KAFKA_USERNAME']}"
      password        "#{ENV['KAFKA_PASSWORD']}"
      scram_mechanism sha512
      ssl_ca_cert     /etc/ssl/certs/kafka/ca.crt
    </source>

I am running multiple fluentd instances with the same config.

@repeatedly
Copy link
Member

Hmm... if ruby-kafka keeps limited support with recent versions, we need to consider rdkafka based consumers.

@wcollin
Copy link

wcollin commented May 18, 2020

i have the same issue. my version is td-agent-3.5.1-0.el7.x86_64 and kafka 2.12-2.3.0,when i fallback kafka to 2.12-2.2.0,everything is ok.

@pathikritmodak
Copy link

Having the same issue. I would upvote for rdkafka based input plugin too. With ruby_kafka, there have been some or the other issue with kafka upgrades, and their compatibility charts are so convoluted and doesn't give much details so you don't know what's going to break.

@robinp-tw
Copy link

As a mitigation in the README at least, see zendesk/ruby-kafka#839 - please add to that PR's comments if you have any more specifics.

@den-is
Copy link

den-is commented Jun 21, 2020

what's the error message you are getting ?
Interesting if it is similar to mine #346

rdkafka binding sounds good. iirc fluent-bit is already using it

@repeatedly
Copy link
Member

rdkafka input plugin will be handled in #350

@tkornai
Copy link
Contributor

tkornai commented Sep 8, 2020

Related PR: #367

@github-actions
Copy link

github-actions bot commented Jul 6, 2021

This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days

@github-actions github-actions bot added the stale label Jul 6, 2021
@github-actions
Copy link

github-actions bot commented Aug 5, 2021

This issue was automatically closed because of stale in 30 days

@github-actions github-actions bot closed this as completed Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants