<?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: SQL processors (jdbc:phoenix)  hanging in Secured HDP in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-processors-jdbc-phoenix-hanging-in-Secured-HDP/m-p/147173#M52648</link>
    <description>&lt;P&gt;Just commenting on this for future visitors to this post:&lt;/P&gt;&lt;P&gt;Only files that end in ".jar" are picked up by the Driver Class Loader,&lt;/P&gt;&lt;P&gt;Here's the relevant source code from  &lt;A href="https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-services/nifi-dbcp-service-bundle/nifi-dbcp-service/src/main/java/org/apache/nifi/dbcp/DBCPConnectionPool.java"&gt;DBCPConnectionPool.java&lt;/A&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;    protected ClassLoader getDriverClassLoader(String locationString, String drvName) throws InitializationException {&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;        if (locationString != null &amp;amp;&amp;amp; locationString.length() &amp;gt; 0) {&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;            try {&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;                // Split and trim the entries&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;                final ClassLoader classLoader = ClassLoaderUtils.getCustomClassLoader(&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;                        locationString,&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;                        this.getClass().getClassLoader(),&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;                        (dir, name) -&amp;gt; name != null &amp;amp;&amp;amp; &lt;STRONG&gt;name.endsWith(".jar")&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Thu, 05 Oct 2017 02:37:09 GMT</pubDate>
    <dc:creator>mehtaparas77</dc:creator>
    <dc:date>2017-10-05T02:37:09Z</dc:date>
    <item>
      <title>SQL processors (jdbc:phoenix)  hanging in Secured HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-processors-jdbc-phoenix-hanging-in-Secured-HDP/m-p/147169#M52644</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have secured HDP cluster and a nifi flow that ingests JSON and inserts it into a Phoenix Table Getfile-&amp;gt;ConvertJsonToSQL-&amp;gt;ReplaceText(insert to update)-&amp;gt;PutSQL. Prior to enabling kerberos the flow was working fine. &lt;/P&gt;&lt;P&gt;After enabling kerberos, I changed the connection pool to:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;jdbc:phoenix:localhost:2181:/hbase-secure:hbase-dev@DEV.COM:/etc/security/keytabs/hbase.headless.keytab&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This connection URL works fine with sqlline/phoenix client&lt;/P&gt;&lt;P&gt;Now when I start the flow, it initially hangs for a while and I end up with the below logs&lt;/P&gt;&lt;PRE&gt;Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=36, exceptions:
Thu Jan 26 06:36:52 UTC 2017, null, java.net.SocketTimeoutException: callTimeout=60000, callDuration=68021: row 'SYSTEM:CATALOG,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=ip-123-431-1-123.ec2.internal,16020,1485391803237, seqNum=0
at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549) ~[na:na]
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388) ~[na:na]
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044) ~[na:na]
at org.apache.nifi.dbcp.DBCPConnectionPool.getConnection(DBCPConnectionPool.java:231) ~[na:na]
	... 18 common frames omitted
Caused by: java.net.SocketTimeoutException: callTimeout=60000, callDuration=68130: row 'SYSTEM:CATALOG,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=ip-172-40-1-51.ec2.internal,16020,1485391803237, seqNum=0
	at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:159) ~[na:na]
	at org.apache.hadoop.hbase.client.ResultBoundedCompletionService$QueueingFuture.run(ResultBoundedCompletionService.java:65) ~[na:na]
	... 3 common frames omitted

Caused by: org.apache.hadoop.hbase.exceptions.ConnectionClosingException: Call to ip-172-40-1-51.ec2.internal/172.40.1.51:16020 failed on local exception: org.apache.hadoop.hbase.exceptions.ConnectionClosingException: Connection to ip-172-40-1-51.ec2.internal/172.40.1.51:16020 is closing. Call id=9, waitTime=3
	at org.apache.hadoop.hbase.ipc.RpcClientImpl.wrapException(RpcClientImpl.java:1258) ~[na:na]
	at org.apache.hadoop.hbase.ipc.RpcClientImpl.call(RpcClientImpl.java:1229) ~[na:na]
	at org.apache.hadoop.hbase.ipc.AbstractRpcClient.callBlockingMethod(AbstractRpcClient.java:213) ~[na:na]
	at org.apache.hadoop.hbase.ipc.AbstractRpcClient$BlockingRpcChannelImplementation.callBlockingMethod(AbstractRpcClient.java:287) ~[na:na]
	at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$BlockingStub.scan(ClientProtos.java:32741) ~[na:na]
	at org.apache.hadoop.hbase.client.ScannerCallable.openScanner(ScannerCallable.java:373) ~[na:na]
	at org.apache.hadoop.hbase.client.ScannerCallable.call(ScannerCallable.java:200) ~[na:na]
	at org.apache.hadoop.hbase.client.ScannerCallable.call(ScannerCallable.java:62) ~[na:na]
	at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:200) ~[na:na]
	at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$RetryingRPC.call(ScannerCallableWithReplicas.java:364) ~[na:na]
	at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$RetryingRPC.call(ScannerCallableWithReplicas.java:338) ~[na:na]
	at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:126) ~[na:na]
	... 4 common frames omitted

Caused by: org.apache.hadoop.hbase.exceptions.ConnectionClosingException: Connection to ip-172-40-1-51.ec2.internal/172.40.1.51:16020 is closing. Call id=9, waitTime=3
	at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.cleanupCalls(RpcClientImpl.java:1047) ~[na:na]
	at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.close(RpcClientImpl.java:846) ~[na:na]
	at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.run(RpcClientImpl.java:574) ~[na:na]
&lt;/PRE&gt;&lt;P&gt;Any ideas on what I could be missing? Similar behaviour with executeSQL.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 14:45:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-processors-jdbc-phoenix-hanging-in-Secured-HDP/m-p/147169#M52644</guid>
      <dc:creator>mliem</dc:creator>
      <dc:date>2017-01-26T14:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: SQL processors (jdbc:phoenix)  hanging in Secured HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-processors-jdbc-phoenix-hanging-in-Secured-HDP/m-p/147170#M52645</link>
      <description>&lt;P&gt;java.net.SocketTimeoutException, is port 2181 open. Are you running nifi and the phoenix server on the same machine?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 14:52:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-processors-jdbc-phoenix-hanging-in-Secured-HDP/m-p/147170#M52645</guid>
      <dc:creator>knarayanan</dc:creator>
      <dc:date>2017-01-26T14:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: SQL processors (jdbc:phoenix)  hanging in Secured HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-processors-jdbc-phoenix-hanging-in-Secured-HDP/m-p/147171#M52646</link>
      <description>&lt;P&gt;No but all ports are open between the two machines. When I run phoenix-client (which works), i use the same node NiFI is running on so i don't think its a connection issue:&lt;/P&gt;&lt;P&gt;Works from nifi node:&lt;/P&gt;&lt;P&gt;/usr/hdp/current/phoenix-client/bin/sqlline.py zk:2181:/hbase-secure:hbase-dev-hadoop@DEV.COM:/etc/security/keytabs/hbase.headless.keytab&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 14:55:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-processors-jdbc-phoenix-hanging-in-Secured-HDP/m-p/147171#M52646</guid>
      <dc:creator>mliem</dc:creator>
      <dc:date>2017-01-26T14:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: SQL processors (jdbc:phoenix)  hanging in Secured HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-processors-jdbc-phoenix-hanging-in-Secured-HDP/m-p/147172#M52647</link>
      <description>&lt;P&gt;The errors look similar to the ones in some other HCC posts:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://community.hortonworks.com/questions/50301/call-for-help-fail-to-run-puthdfshbase-1-1-2-clien.html"&gt;https://community.hortonworks.com/questions/50301/call-for-help-fail-to-run-puthdfshbase-1-1-2-clien.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://community.hortonworks.com/questions/66756/spark-hbase-connection-issue.html"&gt;https://community.hortonworks.com/questions/66756/spark-hbase-connection-issue.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Do the suggestions there help at all? If there is an issue with adding JARs to the classpath, you can do this via the "Database driver location(s)" property.  If there is an issue with including Hadoop configuration files, you can try adding them to the Database driver location(s) property as well, although I don't know if that will work.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 22:07:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-processors-jdbc-phoenix-hanging-in-Secured-HDP/m-p/147172#M52647</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2017-01-26T22:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: SQL processors (jdbc:phoenix)  hanging in Secured HDP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-processors-jdbc-phoenix-hanging-in-Secured-HDP/m-p/147173#M52648</link>
      <description>&lt;P&gt;Just commenting on this for future visitors to this post:&lt;/P&gt;&lt;P&gt;Only files that end in ".jar" are picked up by the Driver Class Loader,&lt;/P&gt;&lt;P&gt;Here's the relevant source code from  &lt;A href="https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-services/nifi-dbcp-service-bundle/nifi-dbcp-service/src/main/java/org/apache/nifi/dbcp/DBCPConnectionPool.java"&gt;DBCPConnectionPool.java&lt;/A&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;    protected ClassLoader getDriverClassLoader(String locationString, String drvName) throws InitializationException {&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;        if (locationString != null &amp;amp;&amp;amp; locationString.length() &amp;gt; 0) {&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;            try {&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;                // Split and trim the entries&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;                final ClassLoader classLoader = ClassLoaderUtils.getCustomClassLoader(&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;                        locationString,&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;                        this.getClass().getClassLoader(),&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;                        (dir, name) -&amp;gt; name != null &amp;amp;&amp;amp; &lt;STRONG&gt;name.endsWith(".jar")&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 05 Oct 2017 02:37:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-processors-jdbc-phoenix-hanging-in-Secured-HDP/m-p/147173#M52648</guid>
      <dc:creator>mehtaparas77</dc:creator>
      <dc:date>2017-10-05T02:37:09Z</dc:date>
    </item>
  </channel>
</rss>

