本文介绍了NiFi 使用 Clickhouse 驱动程序 NoClassDefFoundError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 NiFi 中,我使用 Clickhouse 驱动程序.当我启用"带有驱动程序的 DBCPConnectionPool 时,我得到 java.lang.NoClassDefFoundError: com/google/common/collect/MapMaker.
In NiFi i use Clickhouse Driver. When i "enable" DBCPConnectionPool with driver, i get java.lang.NoClassDefFoundError: com/google/common/collect/MapMaker.
推荐答案
Clickhouse Driver 不是独立的 JAR,它 有依赖,比如Guava.您必须下载所有依赖项以及驱动程序 JAR,将它们全部放在一个文件夹中,然后指向 Database Driver Location(s) 属性中的文件夹.
The Clickhouse Driver is not a standalone JAR, it has dependencies such as Guava. You'd have to download all the dependencies along with the driver JAR, put them all in a folder, and point to the folder in the Database Driver Location(s) property.
这篇关于NiFi 使用 Clickhouse 驱动程序 NoClassDefFoundError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!