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

filebeat fails to use lz4 with kafka 1.0 #6540

Closed
danielmotaleite opened this issue Mar 13, 2018 · 2 comments
Closed

filebeat fails to use lz4 with kafka 1.0 #6540

danielmotaleite opened this issue Mar 13, 2018 · 2 comments
Labels

Comments

@danielmotaleite
Copy link

  • Version: filebeat 6.2.2
  • Operating System: debian stretch
  • Steps to Reproduce:

I have a kafka server 1.0.0 and in filebeat i use something like this:

output:
  kafka:
    hosts: ["172.26.55.191:9092","172.26.21.90:9092","172.26.33.68:9092"]
    topic: '%{[fields.color]}'
    partition.round_robin:
      reachable_only: false
    required_acks: 1
    compression: lz4
    max_message_bytes: 104857600
    version: "0.11.0.0"
    keep_alive: 60

version is set to 0.11.0.0 as it is the highest that filebeat reports as acceptable parameter

When i start filebeat, i get this:

 filebeat[17613]: Exiting: error initializing publisher: kafka: invalid configuration (lz4 compression requires Version >= V0_10_0_0)

even trying 0.10.0.0 in version, it still reports the same error.
switching the compression to gzip, it can start and work correctly

So either there is a bug in kafka output and version check, or filebeat needs to be updated to work correctly with kafka 1.0

@kaplun
Copy link

kaplun commented Apr 27, 2018

I confirm this. I also have tried using different versions such as 0.10.0.0 and it fails in an identical way. Putting 1.0.0 fails with unknown/unsupported kafka version '1.0.0'.

@urso
Copy link

urso commented May 9, 2018

Recent update (#7025) should fix the issue.

@urso urso closed this as completed May 9, 2018
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

4 participants