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:
12:54:17.293 AMINFOorg.apache.zookeeper.ClientCnxn
Opening socket connection to server localhost/127.0.0.1:2181. Will not
attempt to authenticate using SASL (Unable to locate a login
configuration)
12:54:17.294 AMWARNorg.apache.zookeeper.ClientCnxn
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)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1047)