# Dremio not starting getting Address already in use

**URL:** <https://community.dremio.com/t/dremio-not-starting-getting-address-already-in-use/263>\
**Category:** Uncategorized\
**Created:** [September 8, 2017, 8:29pm UTC](https://community.dremio.com/t/dremio-not-starting-getting-address-already-in-use/263 "2017-09-08T20:29:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcarter](https://avatars.discourse-cdn.com/v4/letter/b/ebca7d/32.png) [@bcarter](https://community.dremio.com/u/bcarter)\
**Post date:** [September 8, 2017, 8:29pm UTC](https://community.dremio.com/t/dremio-not-starting-getting-address-already-in-use/263/1 "2017-09-08T20:29:45Z")

</div>

Fri Sep 8 14:21:12 MDT 2017 Starting dremio  
core file size (blocks, -c) 0  
data seg size (kbytes, -d) unlimited  
scheduling priority (-e) 0  
file size (blocks, -f) unlimited  
pending signals (-i) 63397  
max locked memory (kbytes, -l) 64  
max memory size (kbytes, -m) unlimited  
open files (-n) 1024  
pipe size (512 bytes, -p) 8  
POSIX message queues (bytes, -q) 819200  
real-time priority (-r) 0  
stack size (kbytes, -s) 8192  
cpu time (seconds, -t) unlimited  
max user processes (-u) 4096  
virtual memory (kbytes, -v) unlimited  
file locks (-x) unlimited  
Catastrophic failure occurred. Exiting. Information follows: Failed to start services, daemon exiting.  
java.lang.RuntimeException: java.net.BindException: Address already in use  
at com.google.common.base.Throwables.propagate(Throwables.java:160)  
at com.dremio.dac.daemon.ZkServer.init(ZkServer.java:111)  
at com.dremio.dac.daemon.ZkServer.start(ZkServer.java:74)  
at com.dremio.service.SingletonRegistry$AbstractServiceReference.start(SingletonRegistry.java:137)  
at com.dremio.service.ServiceRegistry.start(ServiceRegistry.java:74)  
at com.dremio.service.SingletonRegistry.start(SingletonRegistry.java:33)  
at com.dremio.dac.daemon.DACDaemon.startPreServices(DACDaemon.java:165)  
at com.dremio.dac.daemon.DACDaemon.init(DACDaemon.java:175)  
at com.dremio.dac.daemon.DremioDaemon.main(DremioDaemon.java:110)  
Caused by: java.net.BindException: Address already in use  
at sun.nio.ch.Net.bind0(Native Method)  
at sun.nio.ch.Net.bind(Net.java:433)  
at sun.nio.ch.Net.bind(Net.java:425)  
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)  
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)  
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:67)  
at org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnxnFactory.java:90)  
at org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ZooKeeperServerMain.java:117)  
at com.dremio.dac.daemon.ZkServer$ZkEmbeddedServer.run(ZkServer.java:142)  
at java.lang.Thread.run(Thread.java:748)

---

<div class="post-metadata">

**Author:** ![yufeldman](https://avatars.discourse-cdn.com/v4/letter/y/c77e96/32.png) [@yufeldman](https://community.dremio.com/u/yufeldman)\
**Post date:** [September 8, 2017, 8:38pm UTC](https://community.dremio.com/t/dremio-not-starting-getting-address-already-in-use/263/2 "2017-09-08T20:38:15Z")

</div>

Dremio starts Zookeeper server unless one specifies external Zookeeper server to use.  
Saying that - do you have Zookeeper server running on the same node (it uses port 2181 by default) or any other process running on port 2181?

---

<div class="post-metadata">

**Author:** ![bcarter](https://avatars.discourse-cdn.com/v4/letter/b/ebca7d/32.png) [@bcarter](https://community.dremio.com/u/bcarter)\
**Post date:** [September 8, 2017, 8:53pm UTC](https://community.dremio.com/t/dremio-not-starting-getting-address-already-in-use/263/3 "2017-09-08T20:53:45Z")

</div>

Thanks. That was the issue. Zookeeper from Drill was running.

---

<div class="post-metadata">

**Author:** ![venky\_guntakindapall](https://avatars.discourse-cdn.com/v4/letter/v/7ab992/32.png) [@venky\_guntakindapall](https://community.dremio.com/u/venky_guntakindapall)\
**Post date:** [January 5, 2018, 10:32am UTC](https://community.dremio.com/t/dremio-not-starting-getting-address-already-in-use/263/4 "2018-01-05T10:32:43Z")

</div>

Hi,

how one can point dremio to use external zookeeper? I did not find any option in /etc/dremio/dremo.conf file

---

<div class="post-metadata">

**Author:** ![laurent](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/laurent/32/16_2.png) [@laurent](https://community.dremio.com/u/laurent)\
**Post date:** [January 5, 2018, 4:24pm UTC](https://community.dremio.com/t/dremio-not-starting-getting-address-already-in-use/263/5 "2018-01-05T16:24:36Z")

</div>

You can check the reference for `dremio.conf` configuration file at [https://docs.dremio.com/advanced-administration/configuration-files.html#dremio-configuration-file](https://docs.dremio.com/advanced-administration/configuration-files.html#dremio-configuration-file)

There are two settings of interest in your case:

- `zookeeper` which points to the zookeeper quorum to use for coordination
- `services.coordinator.embedded_master_zk.enabled` which turns on/off the embedded zookeeper server (running by default on port 2181)

---

<div class="post-metadata">

**Author:** ![yufeldman](https://avatars.discourse-cdn.com/v4/letter/y/c77e96/32.png) [@yufeldman](https://community.dremio.com/u/yufeldman)\
**Post date:** [January 5, 2018, 5:32pm UTC](https://community.dremio.com/t/dremio-not-starting-getting-address-already-in-use/263/6 "2018-01-05T17:32:12Z")

</div>

I think @laurent replied already  
Let me know if you need more info
