关于nifi:NiFi-1100-版本使用-Kafka-08x

背景须要从 Kafka 0.8.x 版本订阅音讯, 而后发送音讯到 Kafka 1.0.x 版本中, 其中波及到了 Kafka 版本抵触的问题, NiFi 很好的解决了这个问题 NiFi 开发人员指南 NiFi Archives (NARs) 章节中有如下阐明 When software from many different organizations is all hosted within the same environment, Java ClassLoaders quickly become a concern. If multiple components have a dependency on the same library but each depends on a different version, many problems arise, typically resulting in unexpected behavior or NoClassDefFoundError errors occurring. In order to prevent these issues from becoming problematic, NiFi introduces the notion of a NiFi Archive, or NAR.阐明 NiFi 通过将依赖打入 NAR 包, 且不同 NAR 包的 ClassLoader 互相隔离, 而后不同版本的处理器应用不同的 NAR 包, 隔离了依赖, 解决了依赖抵触问题 ...

November 20, 2020 · 2 min · jiezi