Relative Content

Tag Archive for javadatabase-connectionazure-cosmosdb-gremlinapi

Connection to Cosmos DB with Gremlin using custom credentials in Java failing

I am currently trying to connect to a preexisting Cosmos DB using Gremlin and Mavin for Java. My database requires a username and password to connect. I currently pass in the code with endpoint, username, password, and port to create a cluster. I then use the cluster to start a client and use the client to create a root traversal which I can use to query the DB. My queries return network errors, but I suspect the problem might be in the creation of a cluster since when searching for hosts on the cluster, I get a result of 0 hosts.