简体   繁体   中英

Azure CosmosDB Mongo API with Tableau

I'm attempting to connect Tableau desktop to our CosmosDB using the MongoDB API. Looks like the Azure Cosmos ODBC driver only supports CosmosDB using the SQL API, not using the MongoDB API. Are there any other ODBC drivers that will work with Cosmos DB Mongo API to get data into Tableau?

We've tried a third party driver by Cdata and this seems to work but we would like to use something free and officially supported by Microsoft.

Thanks, Chris

Yes, the ODBC driver only supports SQL API. There is a driver for this, MongoDB Connector for BI. I would try this.

Was able to get the MongoDB Bi Connector to work.

Instructions:

Connecting to Tableau requires the installation of "MongoDB BI connector" suite and starting the mongosqld daemon.

The set of instructions to install and configure mongosqld deamon are described at https://www.mongodb.com/tableau?jmp=tbl .

To connect mongosqld to a CosmosDB account, use the following command line instead of the one mentioned in the above documentation

mongosqld.exe /mongo-uri:"mongodb://.documents.azure.com:10255" /mongo-username: /mongo-password:"" /mongo-ssl /mongo-sslAllowInvalidCertificates /mongo-minimumTLSVersion:TLS1_2 /auth /mongo-authenticationMechanism:PLAIN /sslPEMKeyFile:https://www.mongodb.com/tableau?jmp=tbl> /sslMode:requireSSL /defaultAuthMechanism:PLAIN

All the variables marked as <> (with the exception of sslPEMKeyFile) are listed in the Connection String page for your account in the Azure Portal Once the MongoSQLD instance is started, start your Tableau client, select "MongoDB BI connector" and configure the USERNAME/PASSWORD as follows:

[1]: https://i.stack.imgur.com/lpyPK.png

(replace the location to ca.crt as generated using the key_cert_gen.sh script in https://www.mongodb.com/tableau?jmp=tbl ) Click on OK and "Sign In" and you should be able to access your MongoDB collections.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM