is there a spark connector for Azure Cosmos DB MongoDB API RU?

Lum, Joey 20 Reputation points
2024-10-30T16:53:46.0733333+00:00

I'm using Azure Databricks to develop a proof of concept. Is there support for a Spark Connector for Azure Cosmos DB MongoDB API? If yes, what versions are supported. Is both batch and stream operations supported?

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,221 questions
{count} votes

Accepted answer
  1. Chandra Boorla 2,990 Reputation points Microsoft Vendor
    2024-10-30T18:38:29.85+00:00

    Hi @Lum, Joey

    Greetings & Welcome to Microsoft Q&A forum! Thanks for posting your query!

    Is there support for a Spark Connector for Azure Cosmos DB MongoDB API? Is both batch and stream operations supported?

    Yes, there is support for a Spark Connector for Azure Cosmos DB’s MongoDB API. You can use the MongoDB Connector for Spark to connect to Azure Cosmos DB for MongoDB. The Spark Connector for Azure Cosmos DB MongoDB API supports both batch and stream operations. The connector provides a high-performance interface for Apache Spark to Azure Cosmos DB using the MongoDB API.

    Why MongoDB Spark Connector?

    Direct Integration with Spark: It allows you to leverage the powerful capabilities of Spark for large-scale data processing and analysis directly on your Cosmos DB data.

    Flexible Data Processing: You can perform a wide range of operations, including data ingestion, transformation, aggregation, and machine learning, using Spark's rich API.

    Scalability and Performance: Spark's distributed processing capabilities enable you to handle large datasets efficiently and scale your workloads as needed.

    For additional information, please refer: https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/vcore/connect-from-databricks#configure-dependencies-for-connectivity

    what versions are supported.

    Version 10.x of the MongoDB Spark Connector is an all-new connector based on the latest Spark API. Install and migrate to version 10.x to take advantage of new capabilities, such as tighter integration with Spark Structured Streaming.

    For more details, please refer the below links:

    I hope this information helps. Please do let us know if you have any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    Thank you.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.