Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2024 05:20 AM
I was facing the same issue, now It is resolved, and thanks to @Abel_Martinez.
I am using this like below code:
df = spark.read.format("mongodb") \
.option('spark.mongodb.read.connection.uri', "mongodb+srv://*****:*****@******/?retryWrites=true&w=majority&appName=****&tls=true") \
.option('database', 'database_name') \
.option('collection', 'collection_name') \
.load()