Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Nifi Without Embeded Zookeeper

avatar
Contributor

Hi All,

I dont want to use the embeded zookeeper, i have configured my 3 nod nifi Cluster with exisiting zookeeper(not embeded) which we have in our hadoop cluster.

My doubt is i have set the property

nifi.state.management.embedded.zookeeper.start is false.

Then do i need to mention the below zookeepers server list in Zookeeper.properties?

server.1=node-1:2888:3888
server.2=node-2:2888:3888
server.3=node-3:2888:3888

Is this really required?

And do i need to created state dir ?

mkdir ./state
mkdir ./state/zookeeper
echo 1 > ./state/zookeeper/myid

The above 2 steps is really required? When we not using Embedded Zookeeper?

1 ACCEPTED SOLUTION

avatar
Contributor

Thanks Much @Pierre Villard The quorum propert shoule mention in zookeeper.properties right? and i need to mention the external zookeeper instances right?

server.1=node-1:2888:3888
server.2=node-2:2888:3888
server.3=node-3:2888:3888

View solution in original post

3 REPLIES 3

avatar

Hi @Anishkumar Valsalam,

This is not required when using external ZooKeeper instances.

Only the quorum property should be required in nifi.properties file.

Hope this helps.

avatar
Contributor

Thanks Much @Pierre Villard The quorum propert shoule mention in zookeeper.properties right? and i need to mention the external zookeeper instances right?

server.1=node-1:2888:3888
server.2=node-2:2888:3888
server.3=node-3:2888:3888

avatar

No if you have a Zookeeper quorum available, you just need to the set the following property:

nifi.zookeeper.connect.string=node-1:2181,node-2:2181,node-3:2181

in nifi.properties file. You don't need to modify the zookeeper.properties file in your case.

Hope this helps.