I think your zookeeper already started normally On Oct 24, 2015 10:35 PM, "researcher cs" <[email protected]> wrote:
> this what i got exactly > > JMX enabled by default Using config: > /home/st/zookeeper-3.3.3/bin/../conf/zoo.cfg Starting zookeeper ... STARTED > st@ubuntu:~/zookeeper-3.3.3/bin$ 2015-10-24 17:32:53,275 - INFO > [main:QuorumPeerConfig@90] - Reading configuration from: > /home/st/zookeeper-3.3.3/bin/../conf/zoo.cfg 2015-10-24 17:32:53,278 - WARN > [main:QuorumPeerMain@105] - Either no config or no quorum defined in > config, running in standalone mode 2015-10-24 17:32:53,315 - INFO > [main:QuorumPeerConfig@90] - Reading configuration from: > /home/st/zookeeper-3.3.3/bin/../conf/zoo.cfg 2015-10-24 17:32:53,316 - INFO > [main:ZooKeeperServerMain@94] - Starting server 2015-10-24 17:32:53,333 - > INFO [main:Environment@97] - Server > environment:zookeeper.version=3.3.3-1073969, built on 02/23/2011 22:27 GMT > 2015-10-24 17:32:53,334 - INFO [main:Environment@97] - Server environment: > host.name=ubuntu 2015-10-24 17:32:53,336 - INFO [main:Environment@97] - > Server environment:java.version=1.6.0_38 2015-10-24 17:32:53,337 - INFO > [main:Environment@97] - Server environment:java.vendor=Sun Microsystems > Inc. 2015-10-24 17:32:53,341 - INFO [main:Environment@97] - Server > environment:java.home=/usr/lib/jvm/jre1.6.0_38 2015-10-24 17:32:53,341 - > INFO [main:Environment@97] - Server > environment:java.class.path=/home/st/zookeeper-3.3.3/bin/../build/classes:/home/st/zookeeper-3.3.3/bin/../build/lib/*.jar:/home/st/zookeeper-3.3.3/bin/../zookeeper-3.3.3.jar:/home/st/zookeeper-3.3.3/bin/../lib/log4j-1.2.15.jar:/home/st/zookeeper-3.3.3/bin/../lib/jline-0.9.94.jar:/home/st/zookeeper-3.3.3/bin/../src/java/lib/*.jar:/home/st/zookeeper-3.3.3/bin/../conf:/usr/lib/jvm/jdk1.6.0_38/bin > 2015-10-24 17:32:53,342 - INFO [main:Environment@97] - Server > environment:java.library.path=/usr/lib/jvm/jre1.6.0_38/lib/i386/client:/usr/lib/jvm/jre1.6.0_38/lib/i386:/usr/lib/jvm/jre1.6.0_38/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib > 2015-10-24 17:32:53,342 - INFO [main:Environment@97] - Server > environment:java.io.tmpdir=/tmp 2015-10-24 17:32:53,343 - INFO > [main:Environment@97] - Server environment:java.compiler=<NA> 2015-10-24 > 17:32:53,343 - INFO [main:Environment@97] - Server environment:os.name=Linux > 2015-10-24 17:32:53,343 - INFO [main:Environment@97] - Server > environment:os.arch=i386 2015-10-24 17:32:53,344 - INFO [main:Environment@97] > - Server environment:os.version=3.5.0-23-generic 2015-10-24 17:32:53,344 - > INFO [main:Environment@97] - Server environment:user.name=st 2015-10-24 > 17:32:53,344 - INFO [main:Environment@97] - Server > environment:user.home=/home/st 2015-10-24 17:32:53,345 - INFO > [main:Environment@97] - Server > environment:user.dir=/home/st/zookeeper-3.3.3/bin 2015-10-24 17:32:53,358 - > INFO [main:ZooKeeperServer@663] - tickTime set to 2000 2015-10-24 > 17:32:53,359 - INFO [main:ZooKeeperServer@672] - minSessionTimeout set to > -1 2015-10-24 17:32:53,359 - INFO [main:ZooKeeperServer@681] - > maxSessionTimeout set to -1 2015-10-24 17:32:53,413 - INFO > [main:NIOServerCnxn$Factory@143] - binding to port 0.0.0.0/0.0.0.0:2181 > 2015-10-24 17:32:53,478 - INFO [main:FileSnap@82] - Reading snapshot > /var/zookeeper/version-2/snapshot.0 2015-10-24 17:32:53,509 - INFO > [main:FileTxnSnapLog@208] - Snapshotting: 0 > > <https://www.facebook.com/messages/100009278520866#> > > > On Sat, Oct 24, 2015 at 5:25 PM, researcher cs <[email protected]> > wrote: > >> zookeeper was worked well with another version but when i deleted it and >> used another got this ! >> >> On Sat, Oct 24, 2015 at 5:24 PM, researcher cs <[email protected] >> > wrote: >> >>> i tired that too but i don't know where is the problem exactly ? >>> >>> On Sat, Oct 24, 2015 at 5:22 PM, Youzha <[email protected]> wrote: >>> >>>> I think it's strange if the procces wat not running but u still got the >>>> exception if the address already used. Maybe u can try to restart your >>>> machine and try to start zookeeper again >>>> On Oct 24, 2015 10:12 PM, "researcher cs" <[email protected]> >>>> wrote: >>>> >>>>> no it's empty >>>>> >>>>> On Sat, Oct 24, 2015 at 5:09 PM, Youzha <[email protected]> wrote: >>>>> >>>>>> Can u check with netstat command again. Is the proccess still >>>>>> running? >>>>>> On Oct 24, 2015 9:45 PM, "researcher cs" <[email protected]> >>>>>> wrote: >>>>>> >>>>>>> i killed it but when i tried to restart zookeeper problem still ! >>>>>>> >>>>>>> On Sat, Oct 24, 2015 at 4:40 PM, Youzha <[email protected]> >>>>>>> wrote: >>>>>>> >>>>>>>> Like angkur said. >>>>>>>> Then kill with command >>>>>>>> Kill -9 2243 >>>>>>>> On Oct 24, 2015 9:39 PM, "researcher cs" <[email protected]> >>>>>>>> wrote: >>>>>>>> >>>>>>>>> tcp6 0 0 :::2181 :::* LISTEN 0 14885 2243/java like this ! >>>>>>>>> >>>>>>>>> On Sat, Oct 24, 2015 at 4:34 PM, researcher cs < >>>>>>>>> [email protected]> wrote: >>>>>>>>> >>>>>>>>>> Thanks for replying , but the last command kill -9 what ? >>>>>>>>>> >>>>>>>>>> On Sat, Oct 24, 2015 at 4:08 PM, Youzha <[email protected]> >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>>> Maybe u can try this command. >>>>>>>>>>> >>>>>>>>>>> Netstat -netulp | grep 2181 >>>>>>>>>>> >>>>>>>>>>> Then check the pid and kill with kill -9 pid. >>>>>>>>>>> Cmiiw >>>>>>>>>>> On Oct 24, 2015 8:53 PM, "researcher cs" < >>>>>>>>>>> [email protected]> wrote: >>>>>>>>>>> >>>>>>>>>>>> I'm new to zookeeper and tried to start server by using >>>>>>>>>>>> >>>>>>>>>>>> ./zkServer.sh start >>>>>>>>>>>> >>>>>>>>>>>> but got this >>>>>>>>>>>> >>>>>>>>>>>> binding to port 0.0.0.0/0.0.0.0:2181 2015-10-23 22:08:09,952 - >>>>>>>>>>>> FATAL >>>>>>>>>>>> [main:ZooKeeperServerMain@62] - Unexpected exception, exiting >>>>>>>>>>>> abnormally >>>>>>>>>>>> java.net.BindException: Address already in use >>>>>>>>>>>> >>>>>>>>>>>> is there any port which i can use it ? >>>>>>>>>>>> >>>>>>>>>>>> or is there any solution to solve this problem ? >>>>>>>>>>>> >>>>>>>>>>>> i tried to kill process in the port 2181 by using this >>>>>>>>>>>> >>>>>>>>>>>> sudo fuser -k 2181/tcp >>>>>>>>>>>> >>>>>>>>>>>> but problem is still >>>>>>>>>>>> >>>>>>>>>>>> my zoo.cfg is >>>>>>>>>>>> >>>>>>>>>>>> tickTime=2000 >>>>>>>>>>>> initLimit=10 >>>>>>>>>>>> syncLimit=5 >>>>>>>>>>>> dataDir=/var/zookeeper >>>>>>>>>>>> clientPort=2181 >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>> >>>>> >>> >> >
