You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Su She <su...@gmail.com> on 2015/01/29 21:26:05 UTC
X post from Kafka - Can't start zookeeper on an EC2 instance in
public subnet BindException
Hello Everyone,
I have had no problems using Zookeeper on my EC2 instances which are in a
private subnet. However, I when I used the same setup for a new set of
instances in a public subnet, I cannot start zookeeer. I am starting
zookeeper by downloading kafka and then starting the zookeeper-server.
Thank you for the help! This is the error:
ERROR Unexpected exception, exiting abnormally
(org.apache.zookeeper.server.ZooKeeperServerMain)
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:444)
at sun.nio.ch.Net.bind(Net.java:436)
at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
Re: X post from Kafka - Can't start zookeeper on an EC2 instance in
public subnet BindException
Posted by Ben Hsu <be...@criticalmedia.com>.
It looks like you have zookeeper running. Try these things:
# use ps -ef | grep java to see if you have a zookeeper running
# use netstat -ntlp to see if you have anything listening on 2181
On Thu, Jan 29, 2015 at 3:26 PM, Su She <su...@gmail.com> wrote:
> Hello Everyone,
>
> I have had no problems using Zookeeper on my EC2 instances which are in a
> private subnet. However, I when I used the same setup for a new set of
> instances in a public subnet, I cannot start zookeeer. I am starting
> zookeeper by downloading kafka and then starting the zookeeper-server.
> Thank you for the help! This is the error:
>
> ERROR Unexpected exception, exiting abnormally
> (org.apache.zookeeper.server.ZooKeeperServerMain)
> java.net.BindException: Address already in use
> at sun.nio.ch.Net.bind0(Native Method)
> at sun.nio.ch.Net.bind(Net.java:444)
> at sun.nio.ch.Net.bind(Net.java:436)
> at
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
>