<?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: NiFi processors cannot connect to Zookeeper in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-processors-cannot-connect-to-Zookeeper/m-p/313806#M225732</link>
    <description>&lt;P&gt;I was missing zk connect string at conf/state-management.xml. Now it looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...
&amp;lt;cluster-provider&amp;gt;
    &amp;lt;id&amp;gt;zk-provider&amp;lt;/i&amp;gt;
    &amp;lt;class&amp;gt;
        org.apache.nifi.controller.state.providers.zookeeper.ZooKeeperStateProvider
    &amp;lt;/class&amp;gt;
     &amp;lt;property name="Connect String"&amp;gt;my zk connect string&amp;lt;/property&amp;gt;
     &amp;lt;property name="Root Node"&amp;gt;/nifi&amp;lt;/property&amp;gt;
     &amp;lt;property name="Session Timeout"&amp;gt;30 seconds&amp;lt;/property&amp;gt;
     &amp;lt;property name="Access Control"&amp;gt;Open&amp;lt;/property&amp;gt;
&amp;lt;/cluster-provider&amp;gt; &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ListHDFS works OK now. But GenerateTableFetch still throws:&lt;/P&gt;&lt;PRE&gt;2021-03-26 18:06:04,432 INFO [Timer-Driven Process Thread-2] org.apache.hive.jdbc.HiveConnection Will try to open client transport with JDBC Uri: jdbc:hive2://hive.server2.instance.uri=hiveserver1_hostname:10000;hive.server2.authentication=KERBEROS;hive.server2.transport.mode=binary;hive.server2.thrift.sasl.qop=auth;hive.server2.thrift.bind.host=hiveserver1_hostname;hive.server2.thrift.port=10000;hive.server2.use.SSL=false;hive.server2.authentication.kerberos.principal=hive/_HOST@DOMAIN/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2&lt;BR /&gt;2021-03-26 18:06:04,432 INFO [Timer-Driven Process Thread-2] org.apache.hive.jdbc.HiveConnection Could not open client transport with JDBC Uri: jdbc:hive2://hive.server2.instance.uri=hiveserver1_hostname:10000;hive.server2.authentication=KERBEROS;hive.server2.transport.mode=binary;hive.server2.thrift.sasl.qop=auth;hive.server2.thrift.bind.host=hiveserver1_hostname;hive.server2.thrift.port=10000;hive.server2.use.SSL=false;hive.server2.authentication.kerberos.principal=hive/_HOST@DOMAIN/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2&lt;BR /&gt;2021-03-26 18:06:04,432 INFO [Timer-Driven Process Thread-2] o.a.c.f.imps.CuratorFrameworkImpl Starting&lt;BR /&gt;2021-03-26 18:06:04,441 INFO [Timer-Driven Process Thread-2-EventThread] o.a.c.f.state.ConnectionStateManager State change: CONNECTED&lt;BR /&gt;2021-03-26 18:06:04,446 ERROR [Timer-Driven Process Thread-2] o.a.nifi.dbcp.hive.HiveConnectionPool HiveConnectionPool[id=4cfbf700-6449-3d37-9ab1-263a7528f352] Error getting Hive connection: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not open client transport for any of the Server URI's in ZooKeeper: Unable to read HiveServer2 uri from ZooKeeper)&lt;BR /&gt;org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not open client transport for any of the Server URI's in ZooKeeper: Unable to read HiveServer2 uri from ZooKeeper)&lt;/PRE&gt;&lt;P&gt;Actually, it read Hive server2 uri from zk, but couldn't connect.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Mar 2021 17:13:40 GMT</pubDate>
    <dc:creator>tkryazh</dc:creator>
    <dc:date>2021-03-29T17:13:40Z</dc:date>
    <item>
      <title>NiFi processors cannot connect to Zookeeper</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-processors-cannot-connect-to-Zookeeper/m-p/313232#M225457</link>
      <description>&lt;P&gt;I am integrating Apache NiFi 1.9.2 (secure cluster) with HDP 3.1.4. HDP contains Zookeeper 3.4.6 with SASL auth (Kerberos). NiFi nodes successfully connect to this Zookeeper, sync flow and log heartbeats.&lt;BR /&gt;Meanwhile, NiFi processors using Zookeeper are not able to connect. GenerateTableFetch throws:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not open client transport for any of the Server URI's in ZooKeeper: Unable to read HiveServer2 uri from ZooKeeper)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;ListHDFS fails attempting to write its state to ZooKeeper:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;o.apache.nifi.processors.hadoop.ListHDFS ListHDFS  Failed to retrieve timestamp of last listing from the State Manager. Will not perform listing until this is accomplished.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But GetHDFS (which doesn't communicate with zk) works OK.&lt;BR /&gt;Enable HiveConnector works without errors.&lt;BR /&gt;&lt;BR /&gt;Thank you in before for any ideas and support.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 12:05:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-processors-cannot-connect-to-Zookeeper/m-p/313232#M225457</guid>
      <dc:creator>tkryazh</dc:creator>
      <dc:date>2021-03-17T12:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi processors cannot connect to Zookeeper</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-processors-cannot-connect-to-Zookeeper/m-p/313806#M225732</link>
      <description>&lt;P&gt;I was missing zk connect string at conf/state-management.xml. Now it looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...
&amp;lt;cluster-provider&amp;gt;
    &amp;lt;id&amp;gt;zk-provider&amp;lt;/i&amp;gt;
    &amp;lt;class&amp;gt;
        org.apache.nifi.controller.state.providers.zookeeper.ZooKeeperStateProvider
    &amp;lt;/class&amp;gt;
     &amp;lt;property name="Connect String"&amp;gt;my zk connect string&amp;lt;/property&amp;gt;
     &amp;lt;property name="Root Node"&amp;gt;/nifi&amp;lt;/property&amp;gt;
     &amp;lt;property name="Session Timeout"&amp;gt;30 seconds&amp;lt;/property&amp;gt;
     &amp;lt;property name="Access Control"&amp;gt;Open&amp;lt;/property&amp;gt;
&amp;lt;/cluster-provider&amp;gt; &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ListHDFS works OK now. But GenerateTableFetch still throws:&lt;/P&gt;&lt;PRE&gt;2021-03-26 18:06:04,432 INFO [Timer-Driven Process Thread-2] org.apache.hive.jdbc.HiveConnection Will try to open client transport with JDBC Uri: jdbc:hive2://hive.server2.instance.uri=hiveserver1_hostname:10000;hive.server2.authentication=KERBEROS;hive.server2.transport.mode=binary;hive.server2.thrift.sasl.qop=auth;hive.server2.thrift.bind.host=hiveserver1_hostname;hive.server2.thrift.port=10000;hive.server2.use.SSL=false;hive.server2.authentication.kerberos.principal=hive/_HOST@DOMAIN/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2&lt;BR /&gt;2021-03-26 18:06:04,432 INFO [Timer-Driven Process Thread-2] org.apache.hive.jdbc.HiveConnection Could not open client transport with JDBC Uri: jdbc:hive2://hive.server2.instance.uri=hiveserver1_hostname:10000;hive.server2.authentication=KERBEROS;hive.server2.transport.mode=binary;hive.server2.thrift.sasl.qop=auth;hive.server2.thrift.bind.host=hiveserver1_hostname;hive.server2.thrift.port=10000;hive.server2.use.SSL=false;hive.server2.authentication.kerberos.principal=hive/_HOST@DOMAIN/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2&lt;BR /&gt;2021-03-26 18:06:04,432 INFO [Timer-Driven Process Thread-2] o.a.c.f.imps.CuratorFrameworkImpl Starting&lt;BR /&gt;2021-03-26 18:06:04,441 INFO [Timer-Driven Process Thread-2-EventThread] o.a.c.f.state.ConnectionStateManager State change: CONNECTED&lt;BR /&gt;2021-03-26 18:06:04,446 ERROR [Timer-Driven Process Thread-2] o.a.nifi.dbcp.hive.HiveConnectionPool HiveConnectionPool[id=4cfbf700-6449-3d37-9ab1-263a7528f352] Error getting Hive connection: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not open client transport for any of the Server URI's in ZooKeeper: Unable to read HiveServer2 uri from ZooKeeper)&lt;BR /&gt;org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not open client transport for any of the Server URI's in ZooKeeper: Unable to read HiveServer2 uri from ZooKeeper)&lt;/PRE&gt;&lt;P&gt;Actually, it read Hive server2 uri from zk, but couldn't connect.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 17:13:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-processors-cannot-connect-to-Zookeeper/m-p/313806#M225732</guid>
      <dc:creator>tkryazh</dc:creator>
      <dc:date>2021-03-29T17:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi processors cannot connect to Zookeeper</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-processors-cannot-connect-to-Zookeeper/m-p/314337#M225986</link>
      <description>&lt;P&gt;The solution is to use &lt;SPAN&gt;Hive3ConnectionPool from &lt;A href="https://mvnrepository.com/artifact/org.apache.nifi/nifi-hive3-nar" target="_self"&gt;nifi-hive3-nar library&lt;/A&gt;&lt;BR /&gt;Hive 1.* processors, e.g., GenerateTableFetch and SelectHiveQL, work with Hive3 connector.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 10:15:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-processors-cannot-connect-to-Zookeeper/m-p/314337#M225986</guid>
      <dc:creator>tkryazh</dc:creator>
      <dc:date>2021-04-09T10:15:39Z</dc:date>
    </item>
  </channel>
</rss>

