0
votes

I am trying to setup a NiFi cluster with 3 machines (1 Manager & 2 nodes) on different machines using external zookeeper.

I have changed following things in nifi.properties

nifi.zookeeper.connect.string=XX.XXX.XXX.XXX:2181 nifi.state.management.embedded.zookeeper.start=false

I have created zoo.cfg file in Zookeeper/conf folder which contains

tickTime=2000
dataDir=/home/Data/zookeeper/
clientPort=2181
initLimit=5
syncLimit=2
server.1=XX.XXX.XXX.XXX:2888:3888

and created myid file in dataDir=/home/Data/zookeeper/ location which contains 1.

I have followed almost all the articles available on internet but could not be able to setup the cluster successfully.

on starting nifi services it is not showing any cluster. I have checked that my zookeeper is running and using jps :

3890 QuorumPeerMain
3989 RunNiFi
4006 NiFi
6813 Jps

How can I setup NiFi cluster for 3 machines (1 Manager and 2 Nodes) on different machines using external zookeeper.

1
This question is too broad - user3237183

1 Answers

1
votes

Important things to check: nifi.properties:

nifi.cluster.is.node=true

nifi.cluster.node.address={hostname}

is your zookeeper cluster up?

All the other things you mentioned sound correct.