<?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 Re: Connecting to Phoenix on kerberized cluster from NiFi's DBCP Connection Pool in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Connecting-to-Phoenix-on-kerberized-cluster-from-NiFi-s-DBCP/m-p/295589#M217830</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did restart nifi , but the problem still persists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The next release of nifi will add a new DBCP connection Pool: Hadoop DBCP connection pool:&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI-7257" target="_blank" rel="noopener"&gt;https://issues.apache.org/jira/browse/NIFI-7257&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It will, hopefully, solve the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;For my part, I implemented a specific connector which modifies the classpath:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/dams666/nifi-dbcp-connectionpool" target="_blank" rel="noopener"&gt;https://github.com/dams666/nifi-dbcp-connectionpool&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;In short:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public static final PropertyDescriptor DB_DRIVER_LOCATION = new PropertyDescriptor.Builder()&lt;BR /&gt;.name("database-driver-locations")&lt;BR /&gt;.displayName("Database Driver Location(s)")&lt;BR /&gt;.description("Comma-separated list of files/folders and/or URLs containing the driver JAR and its dependencies (if any). For example '/var/tmp/mariadb-java-client-1.1.7.jar'")&lt;BR /&gt;.defaultValue(null)&lt;BR /&gt;.required(false)&lt;BR /&gt;.addValidator(StandardValidators.createListValidator(true, true, StandardValidators.createURLorFileValidator()))&lt;BR /&gt;.expressionLanguageSupported(ExpressionLanguageScope.VARIABLE_REGISTRY)&lt;BR /&gt;&lt;STRONG&gt;.dynamicallyModifiesClasspath(true)&lt;/STRONG&gt;&lt;BR /&gt;.build();&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;dataSource = new BasicDataSource();&lt;BR /&gt;dataSource.setDriverClassName(drv);&lt;BR /&gt;&lt;STRONG&gt;dataSource.setDriverClassLoader(this.getClass().getClassLoader());&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I still got same error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PutSQL[id=94d192a9-fd1d-3c59-99be-d848f8902968] Failed to process session due to java.sql.SQLException: Cannot create PoolableConnectionFactory (ERROR 103 (08004): Unable to establish connection.): org.apache.nifi.processor.exception.ProcessException: java.sql.SQLException: Cannot create PoolableConnectionFactory (ERROR 103 (08004): Unable to establish connection.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My setup:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;U&gt;Database Connection URL&amp;nbsp;:&lt;/U&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;jdbc:phoenix:zk4-xxx.ax.internal.cloudapp.net,zk5-xxx.ax.internal.cloudapp.net,zk6-xxx.ax.internal.cloudapp.net:2181:/hbase-unsecure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;U&gt;Database Driver Class Name&lt;/U&gt;&lt;/SPAN&gt;&lt;U&gt;:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;org.apache.phoenix.jdbc.PhoenixDriver&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Damien&lt;/P&gt;</description>
    <pubDate>Thu, 07 May 2020 19:50:46 GMT</pubDate>
    <dc:creator>DamD</dc:creator>
    <dc:date>2020-05-07T19:50:46Z</dc:date>
  </channel>
</rss>

