简体   繁体   English

NiFi Confluent Schema Registry 异常

[英]NiFi Confluent Schema Registry Exception

We are trying to connect NiFi to our Confluent Kafka instance that has been set up to use the Confluent Schema Registry as we are publishing/consuming messages in the Avro format.我们正在尝试将 NiFi 连接到我们的 Confluent Kafka 实例,该实例已设置为使用 Confluent Schema Registry,因为我们正在以 Avro 格式发布/使用消息。

However, when we start up our NiFi kafka processor we get the following exception:但是,当我们启动 NiFi kafka 处理器时,会出现以下异常:

Failed to retrieve Schema with subjects array from any of the Confluent Schema Registry URL's 
provided; failure response message: User cannot access the resource

Turns out that the security certs only granted us access to specific schema's in the Confluent Schema Registry.事实证明,安全证书仅授予我们访问 Confluent Schema Registry 中特定模式的权限。

Our certificates where missing the ability to query all the schema's.我们的证书缺少查询所有架构的能力。 This is achieved by adding the GLOBAL_SUBJECTS_READ permission as per the Confluent documentation .这是通过根据 Confluent 文档添加GLOBAL_SUBJECTS_READ权限来实现的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM