我希望在我的项目中使用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
现在,问题是如何在架构注册表主机中处理_。