All, I took a shot at adding the ability to specify multiple URLs, files, and folders to the DBCPConnectionPool configuration (NIFI-2604). The branch is here if you'd like to build and try:
https://github.com/mattyb149/nifi/tree/NIFI-2604 The property name, description, etc. has changed, which will invalidate your current DBCPConnectionPool instances. However I think this is a necessary change for a better user experience going forward, and you simply copy the old property value to the new property value and all should return to normal. I haven't issued a PR yet as it depends on a previous PR to be merged. If you give this a try, please let me know how/if it works for you. Thanks, Matt On Fri, Aug 19, 2016 at 2:00 PM, Sumanth Chinthagunta <xmlk...@gmail.com> wrote: > Sorry I mean ./driver_jars > I had similar relative directories ./module_jars etc ., which works fine for > ExecuteScript processor > > Sent from my iPhone > > On Aug 19, 2016, at 4:27 AM, Peter Wicks (pwicks) <pwi...@micron.com> wrote: > > Sumanth, > > > > If the driver is in your lib directory already then you should leave the > path empty. All jar’s in your lib directory are loaded in the classpath for > all NAR’s. > > > > Personally I have three different JDBC drivers in my lib directory to make > them available for whoever needs them (MS SQL, SAP Hana, Teradata, and will > add Oracle soon). > > > > --Peter > > > > From: Sumanth Chinthagunta [mailto:xmlk...@gmail.com] > Sent: Thursday, August 18, 2016 8:56 PM > To: users@nifi.apache.org > Subject: Re: adding dependencies like jdbc drivers to the build > > > > It would be nice if we support relative paths for driver jar. E.g., > ./lib/mariadb-java-client-1.1.7.jar > > This let flow templet portable (dev -> prod) > > > > > > Sent from my iPhone > > > On Aug 18, 2016, at 2:25 PM, Bryan Bende <bbe...@gmail.com> wrote: > > For JDBC, if you are talking about the DBConnectionPool, you should be able > to reference a driver as an external file such as > file:///var/tmp/mariadb-java-client-1.1.7.jar' > > > > If you are talking about something different besides the DBConnectionPool > then it depends what processor/component... > > If you look in the lib directory you will see all the NAR files, each NAR > has one or more components along with all of the other JARs it needs, and > each NAR has isolated class loading so that they will not interfere with > each other. > > > > You would need to figure out which NAR you are dealing with and add a > dependency to one of the poms related to that NAR. > > > > -Bryan > > > > > > On Thu, Aug 18, 2016 at 4:33 PM, Tom Gullo <tomgu...@gmail.com> wrote: > > If I want to add a jdbc driver or any third party dependency where should I > add that dependency in the Maven build for Nifi? > > > > Thanks > > -Tom > >