I have a Flume service installed on 3 different hosts (meaning it uses the
same configuration settings). So, service flume1 has 3 instances.
The first instance, which is installed on the same system as the zookeeper
service, connects to my Hbase instance as expected.
The other two instances on the other hosts keeps on trying to connect to
0.0.0.0:2181 instead of connecting to the zookeeper instance.
The reason I suspect zookeeper is the following from the log output of the
other two agents:
Opening socket connection to server localhost/127.0.0.1:2181. Will not
attempt to authenticate using SASL (Unable to locate a login
Session 0x0 for server null, unexpected error, closing socket
connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)