kafka问题: Error reading field 'topics'

kafka调用的时候出现:

org.apache.kafka.common.protocol.types.SchemaException: Error reading field ‘topic_metadata’: Error reading array of size 1139567, only 45 bytes available

org.apache.kafka.common.protocol.types.SchemaException: Error reading field ‘topics’

出现这种情况 ,很有可能是 client版本和sever版本不一样
建议查询一下 对应的版本
参考:
http://stackoverflow.com/questions/37592121/error-reading-field-topic-metadata-error-reading-array-of-size-1139567-only

i solved my problem with downgrade to kafka 0.9.0,but it still not an efficient solution for me. If someone knows an efficient way of how to fix this in kafka 0.10.0 version,feel free to post it. Until then this is my solution

I’ve also got the same issue when using kafka_2.11 artifact with version 0.10.0.0. But this got resolved once I’ve changed the kafka server to 0.10.0.0. Earlier I was pointing to 0.9.0.1. It looks like server and your pom version should be in synch.

你可能感兴趣的:(kafka)