Hey Bhavik, The error indicates a authentication failure - can you double check your login info? Also can you try specifying the IP address of the Mongo instance instead of localhost - in case you have multiple Drillbits? I haven't used Drill with Mongo - so hopefully someone who has can chime in with their suggestions.
Regards, Abhishek On Wed, Sep 26, 2018 at 10:33 AM Bhavik Shah <[email protected]> wrote: > Hello > When I try to connect to MongoDB database I get the following error: > > > o.a.d.e.s.m.s.MongoSchemaFactory - Failure while loading databases in > Mongo. Timed out after 30000 ms while waiting for a server that matches > ReadPreferenceServerSelector{readPreference=primary}. Client view of > cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, > type=UNKNOWN, state=CONNECTING, > exception={com.mongodb.MongoSecurityException: Exception authenticating > MongoCredential{mechanism=null, userName='drillbit', source='admin', > password=<hidden>, mechanismProperties={}}}, caused by > {com.mongodb.MongoCommandException: Command failed with error 18: > 'Authentication failed.' on server localhost:27017. The full response is { > "ok" : 0.0, "errmsg" : "Authentication failed.", "code" : 18, "codeName" : > "AuthenticationFailed" }}}] > > > Following is my mongo connector configuration: > > > { > "type": "mongo", > "connection": "mongodb://drillbit:txyzwswn60@localhost:27017/", > "enabled": true > } >
