Created on 06-14-2017 08:09 AM - edited 08-17-2019 09:18 PM
I try to access a postgresql through Nifi for that first I try to get json from RestApi through GetHTTP processor, then I try to insert json into postgres through convertJSONToSQL processor in nifi. While initializing DBCP connection I got "DBCPConnectionPool[id=27273afd-ed82-48f4-aaae-d9f265d72769] Failed to invoke @OnEnabled method due to org.apache.nifi.reporting.InitializationException: Can't load Database Driver". I attach my DBCPconnectionpool configure controller service below.
Created 06-14-2017 12:39 PM
Try configuring the "Database Driver Jar Url" property with the absolute path to you "postgresql-42.1.1.jre7.jar" file.
for example:
c:/post/postgresql-42.1.1.jre7.jar
/post/postgresql-42.1.1.jre7.jar
Also check out the nifi-app.log for a full stack trace that may follow the above ERROR that may give more detail on why it can't load the file.
Thanks,
Matt
Created 06-14-2017 12:39 PM
Try configuring the "Database Driver Jar Url" property with the absolute path to you "postgresql-42.1.1.jre7.jar" file.
for example:
c:/post/postgresql-42.1.1.jre7.jar
/post/postgresql-42.1.1.jre7.jar
Also check out the nifi-app.log for a full stack trace that may follow the above ERROR that may give more detail on why it can't load the file.
Thanks,
Matt
Created 06-14-2017 01:09 PM
Or try adding an extra slash before your path (see here for explanation):
file:///post/postgresql-42.1.1.jre7.jar
Created 06-15-2017 12:07 PM
Thanks Matt Burgess
Created 06-15-2017 12:08 PM
Thanks Matt Clarke
Created on 12-18-2017 06:43 AM - edited 08-17-2019 09:17 PM
Hi @Matt Burgess,
I am facing the same problem and the solution you suggested is not working for me. Can u provide with some alternative solution. Configuration and error is given below. Nor the solution by Matt Clarke is working for us.
Created on 08-13-2019 12:25 PM - edited 08-17-2019 09:17 PM
Hello @Matt Burgess .
I am using the CaptureChangesMysql processor to read the events data from mysql but it it failing with the connection error as "org.apache.nifi.reporting.initializationexception can't load database driver"
screenshots are attached for the reference .
Mysql Driver path: file:////Users/kiran/Downloads/mysql/mysql-connector-java-8.0.17.jar
Environment :
Aapache nifi :1.7.0
Mysql 8.0.17
OS : MacOS 10.14.4