Kannan Ramamoorthy
Kannan Ramamoorthy

Reputation: 4190

NiFi adding custom lib jar

We are trying to add additional DB jar's available under lib/ folder of the nifi deployment. How to have an additional jar to be available under lib/ once the nifi is built?

Upvotes: 1

Views: 4482

Answers (1)

mattyb
mattyb

Reputation: 12103

Adding JARs to lib/ is not recommended, even if you are building your own NiFi distribution.

If you are not building your own distribution, and you are using a DBCPConnectionPool to connect to the database, you can put the JARs wherever else you like, and point to them with the "Database Driver Location(s)" property. This is the recommended method for adding necessary database driver JARs.

If you are building your own distribution, I believe you can add the driver as a Maven dependency to the nifi-dbcp-service POM. Note that you would be subject to any Licensing requirements imposed by the included driver. For example, Oracle and MySQL drivers are not included with Apache NiFi because their license is not Apache-friendly.

Upvotes: 3

Related Questions