# Connecting MongoDB to dremio

**URL:** <https://community.dremio.com/t/connecting-mongodb-to-dremio/2806>\
**Category:** Uncategorized\
**Created:** [February 20, 2019, 9:41am UTC](https://community.dremio.com/t/connecting-mongodb-to-dremio/2806 "2019-02-20T09:41:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![henmid](https://avatars.discourse-cdn.com/v4/letter/h/41988e/32.png) [@henmid](https://community.dremio.com/u/henmid)\
**Post date:** [February 20, 2019, 9:41am UTC](https://community.dremio.com/t/connecting-mongodb-to-dremio/2806/1 "2019-02-20T09:41:43Z")

</div>

Hi, i am having troubles connecting MongoDB to Dremio.

Dremio version: 3.1.3  
MongoDB version: 4.0.6  
OS: RedHat

Error from server.log:  
Caused by: java.lang.NumberFormatException: For input string: “6-36-gb4c05da”

I have tried localhost, 127.0.0.1 and the IP to the server. And i am using “No authentication”

Any idea what i should do to make this work? Or a pointer in the right direction? 🙂

---

<div class="post-metadata">

**Author:** ![naren](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/naren/32/1750_2.png) [@naren](https://community.dremio.com/u/naren)\
**Post date:** [February 20, 2019, 3:34pm UTC](https://community.dremio.com/t/connecting-mongodb-to-dremio/2806/2 "2019-02-20T15:34:28Z")

</div>

Can you please attach the server.log file? Is this a locally installed Mongo or Atlas?

---

<div class="post-metadata">

**Author:** ![henmid](https://avatars.discourse-cdn.com/v4/letter/h/41988e/32.png) [@henmid](https://community.dremio.com/u/henmid)\
**Post date:** [February 21, 2019, 6:47am UTC](https://community.dremio.com/t/connecting-mongodb-to-dremio/2806/3 "2019-02-21T06:47:57Z")

</div>

Its a local install of both Mongo and Dremio.  
I tried downgrading the Mongodb version to 3.6 and there was no problems with the connection.

Thanks anyway 🙂

---

<div class="post-metadata">

**Author:** ![firefly707](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/firefly707/32/646_2.png) [@firefly707](https://community.dremio.com/u/firefly707)\
**Post date:** [February 22, 2019, 4:22pm UTC](https://community.dremio.com/t/connecting-mongodb-to-dremio/2806/4 "2019-02-22T16:22:27Z")

</div>

Was Mongo 4.0 working fine with a previous version of Dremio?

---

<div class="post-metadata">

**Author:** ![henmid](https://avatars.discourse-cdn.com/v4/letter/h/41988e/32.png) [@henmid](https://community.dremio.com/u/henmid)\
**Post date:** [February 25, 2019, 6:55am UTC](https://community.dremio.com/t/connecting-mongodb-to-dremio/2806/5 "2019-02-25T06:55:25Z")

</div>

I do not know, tested the MongoDB connection after upgrading Dremio.
