Reputation: 1
what is the difference between mongo-hadoop and mongo-spark connector and does pymongo work only with mango-hadoop?
Is pymongo used only with mongo-hadoop?
Upvotes: 0
Views: 687
Reputation: 91
The MongoDB Connector for Hadoop is a library which allows MongoDB (or backup files in its data format, BSON) to be used as an input source, or output destination, for Hadoop MapReduce tasks. It is designed to allow greater flexibility and performance and make it easy to integrate data in MongoDB with other parts of the Hadoop ecosystem including the following:
The MongoDB Connector for Spark provides integration between MongoDB and Apache Spark.
With the connector, you have access to all Spark libraries for use with MongoDB datasets: Datasets for analysis with SQL (benefiting from automatic schema inference), streaming, machine learning, and graph APIs. You can also use the connector with the Spark Shell.
PyMongo doesn't provide any support for PySpark, but the Spark connector does:
https://docs.mongodb.com/spark-connector/master/python-api/
Upvotes: 2