Error when adding MongoDB as source

Hi,

I am trying to add MongoDB as a new source.
My config is:

  • Dremio: 1.2.1-201710030121530889-8e49316
  • MongoDB: v3.6.0-rc1 - localhost/27017 - no authent

I get the following error in the UI: Failure while attempting to register source: Failure setting up new storage plugin configuration for config com.dremio.plugins.mongo.MongoStoragePluginConfig@6a7270ce

In server.log, there is an exception and the last lines are:
Caused by: com.dremio.common.exceptions.ExecutionSetupException: Failure setting up new storage plugin configuration for config com.dremio.plugins.mongo.MongoStoragePluginConfig@6a7270ce
at com.dremio.exec.store.StoragePluginRegistryImpl.create(StoragePluginRegistryImpl.java:483) ~[dremio-sabot-kernel-1.2.1-201710030121530889-8e49316.jar:1.2.1-201710030121530889-8e49316]
at com.dremio.exec.store.StoragePluginRegistryImpl.createOrUpdate(StoragePluginRegistryImpl.java:290) ~[dremio-sabot-kernel-1.2.1-201710030121530889-8e49316.jar:1.2.1-201710030121530889-8e49316]
at com.dremio.dac.service.source.SourceService.registerSourceWithRuntime(SourceService.java:115) ~[dremio-dac-backend-1.2.1-201710030121530889-8e49316.jar:1.2.1-201710030121530889-8e49316]
at com.dremio.dac.resource.PutSourceResource.putSource(PutSourceResource.java:81) [dremio-dac-backend-1.2.1-201710030121530889-8e49316.jar:1.2.1-201710030121530889-8e49316]
… 46 common frames omitted
Caused by: java.io.IOException: java.lang.NumberFormatException: For input string: "0-rc1"
at com.dremio.plugins.mongo.MongoStoragePlugin.start(MongoStoragePlugin.java:178) ~[dremio-extra-plugin-mongo-1.2.1-201710030121530889-8e49316.jar:1.2.1-201710030121530889-8e49316]
at com.dremio.exec.store.StoragePluginRegistryImpl.create(StoragePluginRegistryImpl.java:427) ~[dremio-sabot-kernel-1.2.1-201710030121530889-8e49316.jar:1.2.1-201710030121530889-8e49316]
… 49 common frames omitted
Caused by: java.lang.NumberFormatException: For input string: "0-rc1"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_131]
at java.lang.Integer.parseInt(Integer.java:580) ~[na:1.8.0_131]
at java.lang.Integer.parseInt(Integer.java:615) ~[na:1.8.0_131]
at com.dremio.plugins.Version.parse(Version.java:53) ~[dremio-sabot-kernel-1.2.1-201710030121530889-8e49316.jar:1.2.1-201710030121530889-8e49316]
at com.dremio.plugins.mongo.MongoTopology.getVersionForConnection(MongoTopology.java:170) ~[dremio-extra-plugin-mongo-1.2.1-201710030121530889-8e49316.jar:1.2.1-201710030121530889-8e49316]
at com.dremio.plugins.mongo.MongoTopology.findMinVersion(MongoTopology.java:183) ~[dremio-extra-plugin-mongo-1.2.1-201710030121530889-8e49316.jar:1.2.1-201710030121530889-8e49316]
at com.dremio.plugins.mongo.MongoTopology.getClusterTopology(MongoTopology.java:207) ~[dremio-extra-plugin-mongo-1.2.1-201710030121530889-8e49316.jar:1.2.1-201710030121530889-8e49316]
at com.dremio.plugins.mongo.MongoStoragePlugin.start(MongoStoragePlugin.java:162) ~[dremio-extra-plugin-mongo-1.2.1-201710030121530889-8e49316.jar:1.2.1-201710030121530889-8e49316]
… 50 common frames omitted

Thanks for your help !

Bruno

Unfortunately has an issue with parsing Mongo version with “-rc” (non-numeric another words). I don’t see any workaround without code change. I will file a JIRA to fix it. Not sure if you could downgrade/upgrade Mongo to have just numeric version meanwhile

Hi Bruno!

Hopefully 3.6 ships soon. :slight_smile:

I have downgraded Mongo to 3.4 and it works. I will retry with 3.6 in a few days :slight_smile:
Thanks !

1 Like