<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question DBCPConnectionPool &amp;quot;Cant load database driver&amp;quot;  (linux-Ubuntu) (postgresql) (nifi) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/DBCPConnectionPool-quot-Cant-load-database-driver-quot-linux/m-p/294187#M217117</link>
    <description>&lt;P&gt;This seems to be an issue for many but I didn't see much in light for Linux systems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've done it all picked up the drivers from&amp;nbsp;&lt;A href="https://jdbc.postgresql.org/download.html" target="_blank"&gt;https://jdbc.postgresql.org/download.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;placed these drives in the&amp;nbsp;nifi-1.11.4/lib/ folder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've restarted Nifi, verified the database, verified the filepath, altered the path name with "file:///", altered the path to say just&amp;nbsp;lib/postgresql-42.2.12.jar, attempted to use another database user. I know that the connection information is correct because I connected to the DataGrip UI. I'm completely stumped.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Database Connection URL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;jdbc:postgresql://localhost:5432/forestdb&lt;/P&gt;&lt;P&gt;Database Driver Class Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;org/postgresql/Driver.class&lt;/P&gt;&lt;P&gt;Database Driver Location(s)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/home/fg/Documents/nifi-1.11.4-bin/nifi-1.11.4/lib/postgresql-42.2.12.jar&lt;/P&gt;&lt;P&gt;Database User&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; admin&lt;/P&gt;&lt;P&gt;Password&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 123&lt;BR /&gt;Max Wait Time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;500 millis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;16:03:08 CDT
ERROR
01711097-9fd7-1476-e26e-a9bf77b2dff7

StandardControllerServiceNode[service=DBCPConnectionPool[id=01711097-9fd7-1476-e26e-a9bf77b2dff7], versionedComponentId=null, processGroup=StandardProcessGroup[identifier=6428af02-0171-1000-124e-9aeed8d62c82], active=true] Failed to invoke @OnEnabled method due to org.apache.nifi.reporting.InitializationException: Can't load Database Driver: Can't load Database Drive&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Apr 2020 21:17:35 GMT</pubDate>
    <dc:creator>ForrestGump</dc:creator>
    <dc:date>2020-04-16T21:17:35Z</dc:date>
    <item>
      <title>DBCPConnectionPool "Cant load database driver"  (linux-Ubuntu) (postgresql) (nifi)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/DBCPConnectionPool-quot-Cant-load-database-driver-quot-linux/m-p/294187#M217117</link>
      <description>&lt;P&gt;This seems to be an issue for many but I didn't see much in light for Linux systems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've done it all picked up the drivers from&amp;nbsp;&lt;A href="https://jdbc.postgresql.org/download.html" target="_blank"&gt;https://jdbc.postgresql.org/download.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;placed these drives in the&amp;nbsp;nifi-1.11.4/lib/ folder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've restarted Nifi, verified the database, verified the filepath, altered the path name with "file:///", altered the path to say just&amp;nbsp;lib/postgresql-42.2.12.jar, attempted to use another database user. I know that the connection information is correct because I connected to the DataGrip UI. I'm completely stumped.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Database Connection URL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;jdbc:postgresql://localhost:5432/forestdb&lt;/P&gt;&lt;P&gt;Database Driver Class Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;org/postgresql/Driver.class&lt;/P&gt;&lt;P&gt;Database Driver Location(s)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/home/fg/Documents/nifi-1.11.4-bin/nifi-1.11.4/lib/postgresql-42.2.12.jar&lt;/P&gt;&lt;P&gt;Database User&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; admin&lt;/P&gt;&lt;P&gt;Password&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 123&lt;BR /&gt;Max Wait Time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;500 millis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;16:03:08 CDT
ERROR
01711097-9fd7-1476-e26e-a9bf77b2dff7

StandardControllerServiceNode[service=DBCPConnectionPool[id=01711097-9fd7-1476-e26e-a9bf77b2dff7], versionedComponentId=null, processGroup=StandardProcessGroup[identifier=6428af02-0171-1000-124e-9aeed8d62c82], active=true] Failed to invoke @OnEnabled method due to org.apache.nifi.reporting.InitializationException: Can't load Database Driver: Can't load Database Drive&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 21:17:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/DBCPConnectionPool-quot-Cant-load-database-driver-quot-linux/m-p/294187#M217117</guid>
      <dc:creator>ForrestGump</dc:creator>
      <dc:date>2020-04-16T21:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: DBCPConnectionPool "Cant load database driver"  (linux-Ubuntu) (postgresql) (nifi)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/DBCPConnectionPool-quot-Cant-load-database-driver-quot-linux/m-p/294228#M217138</link>
      <description>&lt;P&gt;In order to solve this problem I did the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added one of the postgres drives (&lt;A href="https://jdbc.postgresql.org/download.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://jdbc.postgresql.org/download.html&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;to the&amp;nbsp;&lt;SPAN&gt;nifi-1.11.4/lib/ folder I also added the file to a secondary folder within lib call /java11.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I safely shut down nifi and restarted my linux system.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I updated my&amp;nbsp;DBCPConnectionPool to say the follow:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Database Connection URL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; jdbc:postgresql:///forestdb&lt;/P&gt;&lt;P&gt;Database Driver Class Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.postgresql.Driver&lt;/P&gt;&lt;P&gt;Database Driver Location(s)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; No value set&lt;BR /&gt;Kerberos Credentials Service&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; No value set&lt;BR /&gt;Database User&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;admin&lt;/P&gt;&lt;P&gt;Password&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;123&lt;BR /&gt;Max Wait Time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;500 millis&lt;/P&gt;&lt;P&gt;Max Total Connections&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Be sure you have your tables set up and all that good stuff.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Notice that I no longer included the path to the drivers locations. This should be due to Nifi loading the jar files into the system itself, by us adding it to the nifi-1.11.4/lib folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Adding the file to both the&amp;nbsp;nifi-1.11.4/lib folder and the&amp;nbsp;nifi-1.11.4/lib/java11 folder is probably not necessary&amp;nbsp;but i was troubleshooting.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;also note that I changed the Database Connection URL, no longer having localhost as part of the url.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 15:16:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/DBCPConnectionPool-quot-Cant-load-database-driver-quot-linux/m-p/294228#M217138</guid>
      <dc:creator>ForrestGump</dc:creator>
      <dc:date>2020-04-17T15:16:16Z</dc:date>
    </item>
  </channel>
</rss>

