KSQL查询执行失败

时间:2019-07-18 09:13:16

标签: apache-kafka confluent ksql

我在AWS上建立了融合的平台设置,规范为两个工人,三个动物园管理员和三个经纪人。

有人可以解释为什么在所有服务器都启动的情况下在KQL中执行以下查询时出现错误吗?

create STREAM SINK_STREAM WITH (VALUE_FORMAT='AVRO', KAFKA_TOPIC='sink-topic') AS select * from YP_USER_STREAM;

此处创建YP_USER_STREAM的方法如下:

CREATE STREAM YP_USER_STREAM (ID INT(11), EMAIL VARCHAR(64)) WITH (KAFKA_TOPIC='kafkaTopic', VALUE_FORMAT='JSON');

此错误是在执行查询时以及在KSQL服务器启动时生成的:

[2019-07-18 09:01:45,766] INFO Retrying admin request due to retriable exception. Retry no: 1 (io.confluent.ksql.util.KafkaTopicClient:351)
java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.UnknownTopicOrPartitionException: This server does not host this topic-partition.
    at org.apache.kafka.common.internals.KafkaFutureImpl.wrapAndThrow(KafkaFutureImpl.java:45)
    at org.apache.kafka.common.internals.KafkaFutureImpl.access$000(KafkaFutureImpl.java:32)
    at org.apache.kafka.common.internals.KafkaFutureImpl$SingleWaiter.await(KafkaFutureImpl.java:89)

有人可以告诉我我会发生什么配置错误吗?

0 个答案:

没有答案