120 questions
0
votes
1
answer
54
views
Error while connecting to AWS DocumentDB: Command isMaster not supported on $external database
I’m trying to connect to AWS DocumentDB server using the Rust driver with MONGODB-AWS ($external) authentication. A simple “list collections” call fails during the initial handshake with:
Command ...
0
votes
1
answer
78
views
Liquibase with DocumentDB error: Driver class was not specified and could not be determined from the url
I'm trying to use Liquibase community edition and the liquibase-mongodb Maven extension to connect to DocumentDB v5.
After 2 weeks of work, I could not solve this error no matter what I tried:
...
0
votes
1
answer
200
views
How do I connect via Node.js to a DocDB cluster from local test computer?
I'm trying to migrate from MongoDB to DocumentDB just for keeping everything under one roof, and I want to test my code on a sample DocDB cluster. I'm using Node.js + Express.js for my backend. ...
0
votes
1
answer
106
views
gunicorn, Flask and PyMongo intermittent timeout failure
I have gunicorn running on AWS ECS container. There is Flask app behind gunicorn serving requests. The flask app uses pymongo to interface with AWS dcoumentDB. This works most of the time but I am ...
0
votes
1
answer
138
views
Unable to do mongodump or mongoexport from AWS DocumentDB instance
When i try to do mongodump, I am getting the below error:
Failed: error creating intents to dump: error creating intents for database <db>: error counting <db>.<col>: Aggregation ...
0
votes
1
answer
233
views
AWS DocumentDB - JSON Schema Validator
We have been developing collections in mongoDB, with
db.createCollection('xyzCollection', {
validator:
{
$jsonSchema: {....}}})
Now we are moving to AWS DocumentDB & this script fails with ...
1
vote
1
answer
455
views
DocumentDB listchangestreams
Following the AWS documentation we are trying to list all change streams using the command
cursor = new DBCommandCursor(db,
db.runCommand(
{aggregate: 1,
pipeline: [{$...
2
votes
0
answers
497
views
Connecting from AWS Lambda to DocumentDB Without NAT Gateway Using Direct Connection (in the Same VPC)
I wanted to share a solution that allows you to connect from an AWS Lambda function to Amazon DocumentDB without using a NAT gateway, provided that both are in the same VPC. This can be a cost-saving ...
0
votes
2
answers
275
views
DocumentDb equivalent of Mongo's arrayElemAt, expr and eq
I have following structure in documentdb
{
"_id": {
"$oid": "5bc7a1d14cedfd0006445b10"
},
"externalId": {
"$numberLong": "70285&...
0
votes
1
answer
356
views
DocumentDB query is using the wrong index
I'm using MongoDB version 4.0.0 with DocumentDB.
I have a collection called transactions. That collection has this two indices:
{
"creation_date": -1
}
{
"project_id": 1,
&...
0
votes
1
answer
1k
views
Issues connecting the AWS DocumentDB via python script - using SSH Tunneling
I'm trying to connect from my local machine to our AWS DocumentDB instance using pymongo. Our current setup is using a ssh tunnel on an ec2 instance which then connects to AWS DocumentDB. This part is ...
1
vote
0
answers
695
views
Cannot Connect to DocumentDB elastic cluster with Compass
I have created an DocumentDB elastic cluster and I'm able to connect to it successfully from my local machine using mongosh once I figured out I needed to disable retryWrites.
I'd love to be able to ...
0
votes
3
answers
444
views
Scale read from change streams in documentdb
I am utilizing change streams from documentDB to read timely sequenced events using lambda, event bridge to trigger event every 10min to invoke lambda and to archive the data to S3. Is there a way to ...
0
votes
0
answers
313
views
Is countDocuments() speed in DocumentDB depends on document size?
I found that countDocuments() take different time in different copy of the same db. The case is next:
counts documents same (about 70k)
structure documents the same
instance the same 4vcpu і 32 ram.
...
0
votes
2
answers
3k
views
DocumentDB why query very slow?
We have collection with 70k documents. On prod our query executing about 2,8 minute. We trier reproduce same case on another instance, but with the same collection size and on the worse in performance ...
0
votes
1
answer
233
views
is amazon documentdb compatible with 4.0.28
Accouding to Official Amazon DocumentDB homepage, the cloud services only two versions which are 3.6 and 4.0.
But is it possible to use 4.0.28 version or another 4.X version?
I couldn't find the ...
1
vote
0
answers
244
views
Can AWS DocumentDB log slow aggregate queries containing a $lookup stage?
I have the profiler enabled on DocumentDB and it is happily logging slow queries (both simple queries and aggregate pipelines). However whenever I execute an aggregate query containing a $lookup stage,...
2
votes
1
answer
262
views
Is there a way to insert a record with a value from another record
I have case of collection that holds "item" data, with required node "owner" and optional node "status", e.g.
{ _id: 123, item: {some: "data 123" }, owner: {id: ...
0
votes
1
answer
2k
views
Use Kafka connect with AWS documentDB
I'm trying to use AWS DocumentDB as a sink for storing data received from Kafka and was wondering if the MongoDB Kafka connector works with DocumentDB as its documentation mentions that it is ...
5
votes
0
answers
1k
views
AWS OpenSearch Service connection with MongoDB
Is there any way we can connect AWS OpenSearch with MongoDB without using DocumentDb? I have an application based on Nest.js and ReactJs where I want to use OpenSearch Service
2
votes
1
answer
2k
views
$expr' operator not supported in AWS documentdb - Any alternative to $exp
We are trying to migrate Mongo 4.4 version to Document DB 3.6 - 4 version. While checking for compaitability we saw '$expr' operator not supported. Is there any alternative to this in AWS Documentdb?
...
1
vote
0
answers
2k
views
Cannot connect to document db when username and password are passed as arguments
I have a documentdb cluster, I m unable to connect to documentDB when I pass username and password args at once
mongo --host <myDocDbHost>:27017 --username admin --password <myPassword>
I ...
0
votes
1
answer
1k
views
AWS Document DB - Spring Boot Integration - Commit behavior for WRITE Ops
I have a Spring Boot application (2.2.5 RELEASE) that sync (not reactive) writes to AWS DocumentDB wo declaring any explicit transaction semantics from application. We are using MongoOperations ...
0
votes
1
answer
2k
views
How to connect documentdb to a spark application in an emr instance
I'm getting error while I'm trying to configure spark with mongodb in my EMR instance. Below is the command -
spark-shell --conf "spark.mongodb.output.uri=mongodb://admin123:Vibhuti21!@docdb-2021-...
1
vote
1
answer
280
views
Mongo Shell becomes unresponsive after connecting to AWS Document DB
I created an AWS Document DB in the same region as my EC2. When I try to connect to it using the command provided by AWS the terminal seems to get stuck.
The ec2 and Document DB are in the same ...