title: Not able to start zookeeper
body: <p>I am trying to manually start zookeeper. I run </p>
  
  <pre><code># source zkServer.sh start
  </code></pre>
  
  <p>It outputs:</p>
  
  <pre><code>JMX enabled by default
  Using config: /opt/zookeeper-3.4.6/bin/../conf/zoo.cfg
  Starting zookeeper ... STARTED
  </code></pre>
  
  <p>When I run <code>#jps</code>, it outputs</p>
  
  <pre><code>15360 QuorumPeerMain
  15412 Jps
  </code></pre>
  
  <p>From what I read online, Zookeeper is the same process as <code>QuorumPeerMain</code> listed above. But then when I check its status using</p>
  
  <pre><code>source zkServer.sh status
  </code></pre>
  
  <p>It hangs at:</p>
  
  <pre><code>JMX enabled by default
  Using config: /opt/zookeeper-3.4.6/bin/../conf/zoo.cfg
  </code></pre>
  
  <p>So I run </p>
  
  <pre><code>#source zkServer.sh status &gt; templogs.txt
  </code></pre>
  
  <p>Running above makes terminal to flash below for a moment (I have to run this command many times to read what actually is output on terminal before it closes) and closes terminal</p>
  
  <pre><code>JMX enabled by default
  Using config:
  grep: No such file or directory
  grep: No such file or directory
  </code></pre>
  
  <p>Writing to <code>templogs.txt</code> following</p>
  
  <pre><code>Error contacting service. It is probably not running.
  </code></pre>
  
  <p>When I open <code>zookeeper.out</code>, I can see this output:</p>
  
  <pre><code>SLF4J: Class path contains multiple SLF4J bindings.
  SLF4J: Found binding in [jar:file:/opt/zookeeper-3.4.6/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  SLF4J: Found binding in [jar:file:/opt/hive-0.12.0-cdh5.0.3/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  SLF4J: Found binding in [jar:file:/opt/hbase-0.96.1.1-cdh5.0.3/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  SLF4J: Found binding in [jar:file:/opt/spark-0.9.0-cdh/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  SLF4J: Found binding in [jar:file:/opt/splicemachine/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
  2015-06-29 15:49:40,831 [myid:] - INFO  [main:QuorumPeerConfig@103] - Reading configuration from: /opt/zookeeper-3.4.6/bin/../conf/zoo.cfg
  2015-06-29 15:49:40,836 [myid:] - INFO  [main:DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3
  2015-06-29 15:49:40,836 [myid:] - INFO  [main:DatadirCleanupManager@79] - autopurge.purgeInterval set to 0
  2015-06-29 15:49:40,836 [myid:] - INFO  [main:DatadirCleanupManager@101] - Purge task is not scheduled.
  2015-06-29 15:49:40,837 [myid:] - WARN  [main:QuorumPeerMain@113] - Either no config or no quorum defined in config, running  in standalone mode
  2015-06-29 15:49:40,847 [myid:] - INFO  [main:QuorumPeerConfig@103] - Reading configuration from: /opt/zookeeper-3.4.6/bin/../conf/zoo.cfg
  2015-06-29 15:49:40,847 [myid:] - INFO  [main:ZooKeeperServerMain@95] - Starting server
  2015-06-29 15:49:40,896 [myid:] - INFO  [main:Environment@100] - Server environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
  2015-06-29 15:49:40,896 [myid:] - INFO  [main:Environment@100] - Server environment:host.name=ingester
  2015-06-29 15:49:40,896 [myid:] - INFO  [main:Environment@100] - Server environment:java.version=1.8.0_25
  2015-06-29 15:49:40,896 [myid:] - INFO  [main:Environment@100] - Server environment:java.vendor=Oracle Corporation
  2015-06-29 15:49:40,900 [myid:] - INFO  [main:Environment@100] - Server environment:java.home=/usr/java/jdk1.8.0_25/jre
  2015-06-29 15:49:40,901 [myid:] - INFO  [main:Environment@100] - Server environment:java.class.path=/opt/zookeeper-3.4.6/bin/../build/classes:/opt
  </code></pre>
  
  <p>I omit the huge path string that follows, and give below the remaining log:</p>
  
  <pre><code>2015-06-29 15:49:40,902 [myid:] - INFO  [main:Environment@100] - Server environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
  2015-06-29 15:49:40,902 [myid:] - INFO  [main:Environment@100] - Server environment:java.io.tmpdir=/tmp
  2015-06-29 15:49:40,902 [myid:] - INFO  [main:Environment@100] - Server environment:java.compiler=&lt;NA&gt;
  2015-06-29 15:49:40,903 [myid:] - INFO  [main:Environment@100] - Server environment:os.name=Linux
  2015-06-29 15:49:40,903 [myid:] - INFO  [main:Environment@100] - Server environment:os.arch=amd64
  2015-06-29 15:49:40,903 [myid:] - INFO  [main:Environment@100] - Server environment:os.version=3.17.8-200.fc20.x86_64
  2015-06-29 15:49:40,903 [myid:] - INFO  [main:Environment@100] - Server environment:user.name=root
  2015-06-29 15:49:40,904 [myid:] - INFO  [main:Environment@100] - Server environment:user.home=/root
  2015-06-29 15:49:40,904 [myid:] - INFO  [main:Environment@100] - Server environment:user.dir=/root
  2015-06-29 15:49:40,909 [myid:] - INFO  [main:ZooKeeperServer@755] - tickTime set to 2000
  2015-06-29 15:49:40,909 [myid:] - INFO  [main:ZooKeeperServer@764] - minSessionTimeout set to -1
  2015-06-29 15:49:40,909 [myid:] - INFO  [main:ZooKeeperServer@773] - maxSessionTimeout set to -1
  2015-06-29 15:49:40,918 [myid:] - INFO  [main:NIOServerCnxnFactory@94] - binding to port 0.0.0.0/0.0.0.0:2181
  </code></pre>
  
  <p>Is it like zookeeper stuck at obtaining bindings to port 2181?</p>
  
  <p>But when I run <code>lsof -i:2181 -s</code>, it outputs:</p>
  
  <pre><code>COMMAND   PID USER   FD   TYPE   DEVICE SIZE NODE NAME
  java    15360 root  467u  IPv6 18340028       TCP *:eforward (LISTEN)
  </code></pre>
  
  <p>The pid is that of the <code>QuorumPeerMain</code>.</p>
  
  <p>Running <code>source zkServer.sh status</code> on another PC, properly gives</p>
  
  <pre><code>Mode: standalone
  </code></pre>
  
  <p>But on this PC, I am pretty much screwed. Can anyone help me.</p>