KSQL Server连接到远程Kafka群集

时间:2019-03-18 22:12:09

标签: apache-kafka ksql

我正在使用本地KSQL Server(Confluent Platform的最新版本),试图连接到服务器(AWS)上的Tunneled Kafka群集。但是,由于以下错误,我面临无法启动KSQL服务器的问题:

ERROR Failed to initialize TopicClient: Unexpected broker id, expected 5 or empty string, but received ConfigResource(type=BROKER, name='1').name (io.confluent.ksql.services.KafkaTopicClient:279)
ERROR Failed to start KSQL (io.confluent.ksql.rest.server.KsqlServerMain:53)
io.confluent.ksql.util.KsqlException: Could not fetch broker information. KSQL cannot initialize
    at 
io.confluent.ksql.services.KafkaTopicClientImpl.isTopicDeleteEnabled (KafkaTopicClientImpl.java:280)
    at io.confluent.ksql.services.KafkaTopicClientImpl.<init>(KafkaTopicClientImpl.java:66)
    at io.confluent.ksql.services.DefaultServiceContext.create(DefaultServiceContext.java:43)
    at io.confluent.ksql.rest.server.KsqlRestApplication.buildApplication(KsqlRestApplication.java:303)
    at io.confluent.ksql.rest.server.KsqlServerMain.createExecutable(KsqlServerMain.java:85)
    at io.confluent.ksql.rest.server.KsqlServerMain.main(KsqlServerMain.java:50)
Caused by: org.apache.kafka.common.errors.InvalidRequestException: Unexpected broker id, expected 5 or empty string, but received ConfigResource(type=BROKER, name='1').name

我的隧道式Kafka集群在2.0.0版本上运行。即使是我,也尝试使用与Kafka 2.0.x版兼容的KSQL先前版本(5.0.x)。但是问题仍然存在。遇到此问题的任何人,请给我帮助。谢谢。

0 个答案:

没有答案