Storm supervisor not registering itself with the zookeeper

Problems:

1.) When supervisor is in other node than that of the zookeeper,

ConnectionState [ERROR] Connection timed out
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss

2.) When supervisor is in the same node as of the zookeeper,

supervisor [ERROR] Error on initialization of server mk-supervisor
java.net.UnknownHostException: AI: AI

 

Solution:

This is because the firewall of the zookeeper system is not allowing it to accept the connections.While we can solve the 2nd scenario by adding the ip address and the hostname to the /etc/hosts file. Both the problems can be fixed by turning the firewall off by following commands,

service iptables save

service iptables stop

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s