Apache kafka Kafka Connect BigQuery接收器连接器从架构注册表请求不存在的键主题名称

Apache kafka Kafka Connect BigQuery接收器连接器从架构注册表请求不存在的键主题名称,apache-kafka,google-bigquery,avro,apache-kafka-connect,confluent-schema-registry,Apache Kafka,Google Bigquery,Avro,Apache Kafka Connect,Confluent Schema Registry,这是该问题的后续问题: 尝试在卡夫卡(Avro)事件中使用时,我遇到以下错误: org.apache.kafka.connect.errors.DataException: Failed to deserialize data for topic domain.rating.annotated to Avro: at io.confluent.connect.avro.AvroConverter.toConnectData(AvroConverter.java:125) [...] C

这是该问题的后续问题:

尝试在卡夫卡(Avro)事件中使用时,我遇到以下错误:

org.apache.kafka.connect.errors.DataException: Failed to deserialize data for topic domain.rating.annotated to Avro: 
    at io.confluent.connect.avro.AvroConverter.toConnectData(AvroConverter.java:125)
[...]
Caused by: org.apache.kafka.common.errors.SerializationException: Error retrieving Avro key schema version for id 619
Caused by: io.confluent.kafka.schemaregistry.client.rest.exceptions.RestClientException: Subject 'domain.rating.annotated-com.acme.message_schema.type.domain.key.DefaultKey' not found.; error code: 40401
    at io.confluent.kafka.schemaregistry.client.rest.RestService.sendHttpRequest(RestService.java:295)
    at io.confluent.kafka.schemaregistry.client.rest.RestService.httpRequest(RestService.java:355)
    at io.confluent.kafka.schemaregistry.client.rest.RestService.lookUpSubjectVersion(RestService.java:440)
[...]
确实存在的主题是

curl--silent-xgethttp://avro-schema-registry.core-kafka.svc.cluster.local:8081/subjects |jq。
为什么它转而寻找
…DefaultKey
,我如何才能让它做正确的事情

我的
properties/standalone.properties
(我正在使用该文件夹)如下所示:

bootstrap.servers=kafka.core-kafka.svc.cluster.local:9092
key.converter=io.confluent.connect.avro.AvroConverter
key.converter.schema.registry.url=http://avro-schema-registry.core-kafka.svc.cluster.local:8081
value.converter=io.confluent.connect.avro.AvroConverter
value.converter.schema.registry.url=http://avro-schema-registry.core-kafka.svc.cluster.local:8081
internal.key.converter=org.apache.kafka.connect.json.JsonConverter
internal.value.converter=org.apache.kafka.connect.json.JsonConverter
internal.key.converter.schemas.enable=false
internal.value.converter.schemas.enable=false
offset.storage.file.filename=/tmp/connect.offsets
key.converter.key.subject.name.strategy=io.confluent.kafka.serializers.subject.TopicRecordNameStrategy
value.converter.value.subject.name.strategy=io.confluent.kafka.serializers.subject.TopicRecordNameStrategy

啊,我需要以下几点:

key.converter.key.subject.name.strategy=io.confluent.kafka.serializers.subject.RecordNameStrategy
value.converter.value.subject.name.strategy=io.confluent.kafka.serializers.subject.TopicRecordNameStrategy
有了这个,它就工作了。:)

我真的很难浏览文档。对不起,这是个多余的问题

key.converter.key.subject.name.strategy=io.confluent.kafka.serializers.subject.RecordNameStrategy
value.converter.value.subject.name.strategy=io.confluent.kafka.serializers.subject.TopicRecordNameStrategy