Harish Shan
Harish Shan

Reputation: 122

Can I have common zookeeper for both storm and kafka

I have configured single node kafka with the zookeeper (port:2181) and now I want to configure the Storm with two node using a single zookeeper. Can I use the same zookeeper which i used for kafka or I can use separate zookeeper for Storm

Upvotes: 1

Views: 981

Answers (1)

user2720864
user2720864

Reputation: 8161

Yes you can .. same zookeeper cluster can be used for handling multiple application.
Setting up zookeeper is very straight forward in storm you can specify list of zookeeper node and port as

    storm.zookeeper.servers:
      - "localhost"
    storm.zookeeper.port: 2181
    storm.zookeeper.root: "/storm"

here is a sample file

Upvotes: 4

Related Questions