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

update to latest kafka-manager (kafka.common.KafkaException: Unknown offset schema version 3 with kafka 2.1.1) #257

Closed
blinkeye opened this issue Mar 31, 2019 · 4 comments

Comments

@blinkeye
Copy link

Using kafka version 2.1.1 I see a lot of warn in the kafka-manager after activating it with:

kubectl apply -f yahoo-kafka-manager/

The warnings are:

[warn] k.m.a.c.KafkaManagedOffsetCache - Failed to process a message from offset topic on cluster microk8s!
kafka.common.KafkaException: Unknown offset schema version 3
	at kafka.manager.utils.one10.GroupMetadataManager$.schemaForOffset(GroupMetadataManager.scala:428) ~[kafka-manager.kafka-manager-1.3.3.18-sans-externalized.jar:na]
	at kafka.manager.utils.one10.GroupMetadataManager$.readOffsetMessageValue(GroupMetadataManager.scala:532) ~[kafka-manager.kafka-manager-1.3.3.18-sans-externalized.jar:na]
	at kafka.manager.actor.cluster.KafkaManagedOffsetCache$$anonfun$run$4.apply(KafkaStateActor.scala:332) [kafka-manager.kafka-manager-1.3.3.18-sans-externalized.jar:na]
	at kafka.manager.actor.cluster.KafkaManagedOffsetCache$$anonfun$run$4.apply(KafkaStateActor.scala:308) [kafka-manager.kafka-manager-1.3.3.18-sans-externalized.jar:na]
	at scala.util.Success.foreach(Try.scala:236) [org.scala-lang.scala-library-2.11.12.jar:na]
	at kafka.manager.actor.cluster.KafkaManagedOffsetCache.run(KafkaStateActor.scala:308) [kafka-manager.kafka-manager-1.3.3.18-sans-externalized.jar:na]
	at java.lang.Thread.run(Thread.java:748) [na:1.8.0_144]

I think we need the latest version from https://github.com/yahoo/kafka-manager (or at least a version which contains changes from yahoo/CMAK#620). Unfortunately I could not find a pre-built image: solsson/kafka-manager image. I did try to build it myself but got an error. @solsson: do you plan to update to your latest kafka-manager version?

I see that the latest kafka-manager would also support the latest kafka version (2.2.0), see yahoo/CMAK#626

@solsson
Copy link
Contributor

solsson commented Mar 31, 2019

I get the build error too. They use Scala and I can't find any official-looking image with sbt. Needs more research. I guess we can build from yahoo/CMAK#626 until it's merged.

@blinkeye
Copy link
Author

Could the problem from your Dockerfile be the same as reported in the official repo: yahoo/CMAK#565? e.g. Java must not be >8?

@blinkeye
Copy link
Author

blinkeye commented Mar 31, 2019

I could successfully build the latest yahoo/kafka-manager by downgrading to openjdk:8u212, see PR solsson/dockerfiles#24

@solsson
Copy link
Contributor

solsson commented Mar 31, 2019

Yes it looks that way. The build is incredibly heavy though so docker hub will probably fail to build. I'll build locally and push.

solsson added a commit to solsson/dockerfiles that referenced this issue Mar 31, 2019
See Yolean/kubernetes-kafka#257

Builds on Java 8 (the old kubernetes-kafka base image)
but runs on Java 11 for its container advantages

Pushed to docker hub:
solsson/kafka-manager:pr626@sha256:552a4d091f9efa83e40b2a73690cbd1bb33ca2ea4d16af5cbbb7514b3b4e772f
@solsson solsson closed this as completed in 0e0a472 Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants