<?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 1.1.1 Clustering without embedded zookeeper in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-1-1-1-Clustering-without-embedded-zookeeper/m-p/220913#M182787</link>
    <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/525/mclark.html" nodeid="525"&gt;@Matt Clarke&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;I started running the nodes in the cluster. Nodes are shown as 3/3 connected. But there is something wrong. When I add a processor in one of the nodes and then configure that processor, the URL redirects to its internal ip. &lt;/P&gt;&lt;P&gt;For example, my public ip is : a.b.c.d and internal ip is a1.b1.c1.d1 then configuring processor redirects to : &lt;/P&gt;&lt;P&gt;a1.b1.c1.d1:9999/nifi-api/processors/ID_of_Processor&lt;/P&gt;&lt;P&gt;while it should be a.b.c.d/nifi-api/processors/ID_of_Processor&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2017 14:28:40 GMT</pubDate>
    <dc:creator>jatin_kheradiya</dc:creator>
    <dc:date>2017-05-09T14:28:40Z</dc:date>
    <item>
      <title>Nifi 1.1.1 Clustering without embedded zookeeper</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-1-1-1-Clustering-without-embedded-zookeeper/m-p/220908#M182782</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to set up a clustering with 3 nodes but without using embedded zookeeper. I installed and started a separate zookeeper on port 2181 on one of the nodes (node1). My other nodes properties are as follows:&lt;/P&gt;&lt;P&gt;nifi.cluster.is.node=true &lt;/P&gt;&lt;P&gt;nifi.cluster.node.address=IP_MACHINE &lt;/P&gt;&lt;P&gt;nifi.cluster.node.protocol.port=9000 &lt;/P&gt;&lt;P&gt;nifi.cluster.node.protocol.threads=10 &lt;/P&gt;&lt;P&gt;nifi.cluster.node.event.history.size=25 &lt;/P&gt;&lt;P&gt;nifi.cluster.node.connection.timeout=5 sec &lt;/P&gt;&lt;P&gt;nifi.cluster.node.read.timeout=5 sec &lt;/P&gt;&lt;P&gt;nifi.cluster.firewall.file= &lt;/P&gt;&lt;P&gt;nifi.cluster.flow.election.max.wait.time=1 mins &lt;/P&gt;&lt;P&gt;nifi.cluster.flow.election.max.candidates=3&lt;/P&gt;&lt;P&gt;nifi.zookeeper.connect.string=IP_MACHINE_1:2181&lt;/P&gt;&lt;P&gt;nifi.zookeeper.connect.timeout=3 secs &lt;/P&gt;&lt;P&gt;nifi.zookeeper.session.timeout=3 secs &lt;/P&gt;&lt;P&gt;nifi.zookeeper.root.node=/nifi&lt;/P&gt;&lt;P&gt;And I have kept remote (site to site) properties empty for the first node and following on other 2 nodes:&lt;/P&gt;&lt;P&gt;nifi.remote.input.host=IP_MACHINE_1 &lt;/P&gt;&lt;P&gt;nifi.remote.input.secure=false &lt;/P&gt;&lt;P&gt;nifi.remote.input.socket.port= &lt;/P&gt;&lt;P&gt;nifi.remote.input.http.enabled=true &lt;/P&gt;&lt;P&gt;nifi.remote.input.http.transaction.ttl=30 sec&lt;/P&gt;&lt;P&gt;Then I start all the nodes. I get following logs in the node1:&lt;/P&gt;&lt;PRE&gt;2017-05-04 11:46:48,843 INFO [Process Cluster Protocol Request-10] o.a.n.c.p.impl.SocketProtocolListener Finished processing request 3fadedb5-c6f0-4fe8-ad02-091799b5c242 (type=NODE_CONNECTION_STATUS_REQUEST, length=97 bytes) from MACHINE_IP_3 in 0 millis
2017-05-04 11:46:50,539 INFO [Process Cluster Protocol Request-1] o.a.n.c.p.impl.SocketProtocolListener Finished processing request 4b414f92-8486-4e7f-9c4c-e184279611b1 (type=HEARTBEAT, length=2458 bytes) from localhost:9993 in 1 millis
2017-05-04 11:46:52,083 INFO [Process Cluster Protocol Request-4] o.a.n.c.p.impl.SocketProtocolListener Finished processing request 82956fb1-7696-41a6-a5de-36e2b4362889 (type=NODE_CONNECTION_STATUS_REQUEST, length=97 bytes) from MACHINE_IP_2 in 0 millis
2017-05-04 11:46:52,421 INFO [Process Cluster Protocol Request-2] o.a.n.c.p.impl.SocketProtocolListener Finished processing request d9f3c705-4feb-452f-b6aa-ff2d01bd3f7f (type=HEARTBEAT, length=2456 bytes) from localhost:9994 in 1 millis
2017-05-04 11:46:53,848 INFO [Process Cluster Protocol Request-6] o.a.n.c.p.impl.SocketProtocolListener Finished processing request 45063482-48a2-4edf-b064-35840f6fcf6e (type=NODE_CONNECTION_STATUS_REQUEST, length=97 bytes) from MACHINE_IP_3 in 0 millis
2017-05-04 11:46:54,262 WARN [main] o.a.nifi.controller.StandardFlowService Failed to connect to cluster due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed to create socket to MACHINE_IP_1:9000 due to: java.net.ConnectException: Connection timed out (Connection timed out)


&lt;/PRE&gt;&lt;P&gt;So it received heartbeat messages from localhost:9993 (which actually is node2). &lt;/P&gt;&lt;P&gt;I checked Zookeeper and it shows 2 Primary nodes (the 2 nodes not running zookeeper) and all 3 nodes connected in the Cluster Coordinator. &lt;/P&gt;&lt;P&gt;When I check UI, on Machine 1, I get:&lt;/P&gt;&lt;PRE&gt;Cluster is still in the process of voting on the appropriate Data Flow.
&lt;/PRE&gt;&lt;P&gt;On Machine 2 and 3, I get following message on UI:&lt;/P&gt;&lt;PRE&gt;Action cannot be performed because there is currently no Cluster Coordinator elected. The request should be tried again after a moment, after a Cluster Coordinator has been automatically elected.
&lt;/PRE&gt;&lt;P&gt;I seem to have configured the zookeeper and other properties properly and still it is not able to elect the cluster coordinator. &lt;/P&gt;&lt;P&gt;Thanks in advace. &lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 18:55:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-1-1-1-Clustering-without-embedded-zookeeper/m-p/220908#M182782</guid>
      <dc:creator>jatin_kheradiya</dc:creator>
      <dc:date>2017-05-04T18:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 1.1.1 Clustering without embedded zookeeper</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-1-1-1-Clustering-without-embedded-zookeeper/m-p/220909#M182783</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/16979/jatinkheradiya89.html" nodeid="16979"&gt;@Jatin Kheradiya&lt;/A&gt;&lt;P&gt;In nifi.properties on each node of your cluster, nifi.state.management.embedded.zookeeper.start set to false?&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 02:04:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-1-1-1-Clustering-without-embedded-zookeeper/m-p/220909#M182783</guid>
      <dc:creator>jts</dc:creator>
      <dc:date>2017-05-05T02:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 1.1.1 Clustering without embedded zookeeper</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-1-1-1-Clustering-without-embedded-zookeeper/m-p/220910#M182784</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/16979/jatinkheradiya89.html" nodeid="16979"&gt;@Jatin Kheradiya&lt;/A&gt;&lt;P&gt;There are a few things that do not look right in your nifi.properties configuration above:&lt;/P&gt;&lt;P&gt;On every node the following properties should be configured with the FQDN of the node:&lt;/P&gt;&lt;PRE&gt;1. nifi.remote.input.host=
2. nifi.cluster.node.address=
3. nifi.web.http.host=  or   nifi.web.https.host=&lt;/PRE&gt;&lt;P&gt;I noticed you are configuring nifi.remote.input.host= with the IP of a different node.&lt;/P&gt;&lt;P&gt;It is not clear from the above if you set a value for nifi.web.http.host= or nifi.web.https.host=. If you did not, Java may be resolving your hostname to localhost.  This can be problematic for cluster communications.  Since node may end up trying to talk to themselves rather then actually talking to the other nodes.&lt;/P&gt;&lt;P&gt;Also make sure that the following ports are open in any firewalls between your nodes:&lt;/P&gt;&lt;PRE&gt;1. nifi.remote.input.socket.port=
2. nifi.cluster.node.protocol.port=
3. nifi.web.http.port=8080   or    nifi.web.https.port=
&lt;/PRE&gt;&lt;P&gt;Also make sure all three of your nodes can talk to zookeeper on port 2181.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 02:43:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-1-1-1-Clustering-without-embedded-zookeeper/m-p/220910#M182784</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-05-05T02:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 1.1.1 Clustering without embedded zookeeper</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-1-1-1-Clustering-without-embedded-zookeeper/m-p/220911#M182785</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12547/jstorck.html" nodeid="12547"&gt;@Jeff Storck&lt;/A&gt;, yes the property nifi.state.management.embedded.zookeeper.start is set to false in all the 3 nodes. &lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 13:19:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-1-1-1-Clustering-without-embedded-zookeeper/m-p/220911#M182785</guid>
      <dc:creator>jatin_kheradiya</dc:creator>
      <dc:date>2017-05-05T13:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 1.1.1 Clustering without embedded zookeeper</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-1-1-1-Clustering-without-embedded-zookeeper/m-p/220912#M182786</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/525/mclark.html" nodeid="525"&gt;@Matt Clarke&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;I added FQDNs and it worked like charm. &lt;/P&gt;</description>
      <pubDate>Sat, 06 May 2017 02:14:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-1-1-1-Clustering-without-embedded-zookeeper/m-p/220912#M182786</guid>
      <dc:creator>jatin_kheradiya</dc:creator>
      <dc:date>2017-05-06T02:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 1.1.1 Clustering without embedded zookeeper</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-1-1-1-Clustering-without-embedded-zookeeper/m-p/220913#M182787</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/525/mclark.html" nodeid="525"&gt;@Matt Clarke&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;I started running the nodes in the cluster. Nodes are shown as 3/3 connected. But there is something wrong. When I add a processor in one of the nodes and then configure that processor, the URL redirects to its internal ip. &lt;/P&gt;&lt;P&gt;For example, my public ip is : a.b.c.d and internal ip is a1.b1.c1.d1 then configuring processor redirects to : &lt;/P&gt;&lt;P&gt;a1.b1.c1.d1:9999/nifi-api/processors/ID_of_Processor&lt;/P&gt;&lt;P&gt;while it should be a.b.c.d/nifi-api/processors/ID_of_Processor&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 14:28:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-1-1-1-Clustering-without-embedded-zookeeper/m-p/220913#M182787</guid>
      <dc:creator>jatin_kheradiya</dc:creator>
      <dc:date>2017-05-09T14:28:40Z</dc:date>
    </item>
  </channel>
</rss>

