java.lang.NoSuchMethodError:kafka.cluster.Broker.endPoints()Lscala / collection / map with updated kafka version 0.10.2.0

时间:2017-04-05 00:01:16

标签: apache-kafka

我正在进行嵌入式kafka测试。我和kafka 0.10.1.1在重新平衡方面遇到了问题 与此Exception in thread "StreamThread-1" org.apache.kafka.streams.errors.StreamsException: Failed to rebalance

类似

根据我在网上找到的建议,我将kafka版本更新为0.10.2.0。 但是现在测试会抛出这个错误:

java.lang.NoSuchMethodError: kafka.cluster.Broker.endPoints()Lscala/collection/Map;
    at io.confluent.kafka.schemaregistry.storage.KafkaStore.brokersToEndpoints(KafkaStore.java:277)
    at io.confluent.kafka.schemaregistry.storage.KafkaStore.<init>(KafkaStore.java:122)
    at io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry.<init>(KafkaSchemaRegistry.java:144)
    at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.setupResources(SchemaRegistryRestApplication.java:53)
    at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.setupResources(SchemaRegistryRestApplication.java:37)
    at io.confluent.rest.Application.createServer(Application.java:149)
    at io.confluent.kafka.schemaregistry.RestApp.start(RestApp.java:59)
    at com.kafka.EmbeddedSingleNodeKafkaCluster.start(EmbeddedSingleNodeKafkaCluster.java:82)
    at com.kafka.EmbeddedSingleNodeKafkaCluster.before(EmbeddedSingleNodeKafkaCluster.java:100)
    at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:46)
    at org.junit.rules.RunRules.evaluate(RunRules.java:20)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
    at com.CustomizedIntegrationTestClassRunner.run(CustomizedIntegrationTestClassRunner.java:22)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

我需要在配置属性中进行任何更改吗?

0 个答案:

没有答案