Hi,
I have been trying to establish successful ODBC connection using mongoDB BI connector. But I am not successful. Here are the steps I have done:
- Setup a Atlas shared mongodb cluster
- Able to connect from my desktop using mongodb compass
- Installed mongoDB BI connector
- Generated DDRL (using shard host addresses) using mongodrdl
- Created a config file to run mongosqld to start the service. Here is the config file
systemLog:
logAppend: false
path: ‘c:\logs\jg-mongosql.log’
verbosity: 2security:
enabled: truemongodb:
net:
uri: ‘cluster0.99ltrf9.mongodb.net:27017’
auth:
username: ‘username’
password: ‘password’
ssl:
enabled: true
PEMKeyFile: ‘C:\opt\certs\mdb.pem’
CAFile: ‘C:\opt\certs\mdbca.crt’net:
bindIp: 127.0.0.1
port: 3307
ssl:
mode: ‘allowSSL’
PEMKeyFile: ‘C:\opt\certs\mdb.pem’
CAFile: ‘C:\opt\certs\mdbca.crt’schema:
If you’ve generated a DRDL schema file using mongodrdl, you can supply the
path for mongosqld to use that schema DRDL file.
path: ‘C:\Program Files\MongoDB\Connector for BI\2.14\bin\jgschema.drdl’
processManagement:
service:
name: jg-mongosqld
displayName: jg-mongosqld
description: “BI Connector SQL proxy server”
But I keep getting following error in the log to establish the odbc connection:
2022-09-17T19:12:58.762+0530 I NETWORK [initandlisten] waiting for connections at 127.0.0.1:3307
2022-09-17T19:13:03.765+0530 E NETWORK [initandlisten] unable to load MongoDB information: failed to create admin session for loading server cluster information: unable to execute command: server selection error: context deadline exceeded, current topology: { Type: Unknown, Servers: [{ Addr: <protected - mongodb cluster address>, Type: Unknown, Average RTT: 0, Last error: connection() error occured during connection handshake: dial tcp: lookup cluster0.99ltrf9.mongodb.net: no such host }, ] }
Looking forward for the support to resolve the issue. Appreciate your support.
Best Rgards
JG