融合的KSQL架构注册表值引发错误-由以下原因引起:主机名中的无效字符

时间:2019-07-09 08:01:09

标签: apache-kafka confluent-schema-registry ksql

我希望在我的项目中使用Confluent KSQL,并在ksql-server.properties中设置架构注册表,如下所示。

ksql.schema.registry.url=http://schemaregistry_dev.sys.set.com:8081

但是,当尝试在KSQL中创建表时,出现了以下错误。

Schema registry fetch for topic set_in_o.sub4 request failed.

Caused by: Invalid characters in hostname

这是我们成功用于Kafka Producer API和Kafka-Connect的架构注册表。

但是,它对于KSQL失败。什么是引起故障的符号。

仅供参考,我尝试了以下不起作用的组合(使用单引号和双引号,并在https://docs.confluent.io/current/ksql/docs/developer-guide/syntax-reference.html#struct-overview中在KSQL中转义为尾随错误)

ksql.schema.registry.url="http://schemaregistry_dev.sys.set.com:8081" ksql.schema.registry.url='http://schemaregistry_dev.sys.set.com:8081' ksql.schema.registry.url=''http://schemaregistry_dev.sys.set.com:8081''

为了理解哪个符号引起了问题,我尝试了以下操作(删除下划线(_))。

http://schemaregistrydev.sys.set.com:8081

然后错误更改如下。

获取主题set_in_o.sub4请求的架构注册表失败。

原因:schemaregistrydev.sys.set.com

现在,问题是如何在架构注册表主机中处理_。

0 个答案:

没有答案