

Building your pipeline or Using Airbyte
Airbyte is the only open source solution empowering data teams to meet all their growing custom business demands in the new AI era.
- Inconsistent and inaccurate data
- Laborious and expensive
- Brittle and inflexible
- Reliable and accurate
- Extensible and scalable for all your needs
- Deployed and governed your way
Start syncing with Airbyte in 3 easy steps within 10 minutes



Take a virtual tour
Demo video of Airbyte Cloud
Demo video of AI Connector Builder
What sets Airbyte Apart
Modern GenAI Workflows
Move Large Volumes, Fast
An Extensible Open-Source Standard
Full Control & Security
Fully Featured & Integrated
Enterprise Support with SLAs
What our users say


"For TUI Musement, Airbyte cut development time in half and enabled dynamic customer experiences."


“Airbyte helped us accelerate our progress by years, compared to our competitors. We don’t need to worry about connectors and focus on creating value for our users instead of building infrastructure. That’s priceless. The time and energy saved allows us to disrupt and grow faster.”

"With Airbyte, we could just push a few buttons, allow API access, and bring all the data into Google BigQuery. By blending all the different marketing data sources, we can gain valuable insights."
Start by exporting your data from MongoDB into a format that can be easily manipulated, such as JSON or CSV. Use the `mongoexport` tool, which is included with MongoDB, to export data from a collection. For example, to export to JSON, use:
```
mongoexport --db yourDatabase --collection yourCollection --out data.json
```
This command will create a JSON file of your collection's documents.
Apache Iceberg is often used with Apache Spark for processing. Ensure you have a Spark environment set up. You can install Apache Spark on your local machine or use a cloud service that supports Spark. Download Spark and configure it by setting the `SPARK_HOME` environment variable and adding its `bin` directory to your PATH.
Download and install Apache Iceberg. You can do this by adding Iceberg dependencies to your Spark installation. Modify the `spark-defaults.conf` file to include Iceberg configuration:
```
spark.jars.packages org.apache.iceberg:iceberg-spark-runtime:1.0.0
```
Replace `1.0.0` with the latest stable version of Iceberg compatible with your Spark version.
Load the exported JSON data into Apache Spark. Use Spark's DataFrame API to read the JSON file and transform it as needed. This might include schema adjustments to fit your Iceberg table requirements:
```python
from pyspark.sql import SparkSession
spark = SparkSession.builder \
.appName("MongoDB to Iceberg") \
.getOrCreate()
df = spark.read.json("data.json")
# Perform any necessary transformations
```
Before loading data into Iceberg, define the schema for your Iceberg table. This can be done using Spark SQL. For example:
```sql
CREATE TABLE iceberg_db.your_table (
id STRING,
name STRING,
age INT
) USING iceberg
LOCATION 'hdfs://path/to/iceberg/tables/your_table'
```
Use the transformed DataFrame from Spark to write data into the Iceberg table. Ensure that the DataFrame's schema matches the Iceberg table schema:
```python
df.write.format("iceberg").mode("append").save("iceberg_db.your_table")
```
This command writes the Spark DataFrame into the specified Iceberg table.
After loading the data, verify that it has been correctly transferred by querying the Iceberg table. Use Spark SQL to perform a simple query:
```sql
SELECT FROM iceberg_db.your_table LIMIT 10
```
This will help ensure that your data is correctly loaded and accessible in Apache Iceberg.
By following these steps, you can successfully move data from MongoDB to Apache Iceberg without relying on third-party connectors or integrations.
FAQs
What is ETL?
ETL, an acronym for Extract, Transform, Load, is a vital data integration process. It involves extracting data from diverse sources, transforming it into a usable format, and loading it into a database, data warehouse or data lake. This process enables meaningful data analysis, enhancing business intelligence.
MongoDB is a popular open-source NoSQL database that stores data in a flexible, document-based format. It is designed to handle large volumes of unstructured data and is highly scalable, making it a popular choice for modern web applications. MongoDB uses a JSON-like format to store data, which allows for easy integration with web applications and APIs. It also supports dynamic queries, indexing, and aggregation, making it a powerful tool for data analysis. MongoDB is widely used in industries such as finance, healthcare, and e-commerce, and is known for its ease of use and flexibility.
MongoDB gives access to a wide range of data types, including:
1. Documents: MongoDB stores data in the form of documents, which are similar to JSON objects. Each document contains a set of key-value pairs that represent the data.
2. Collections: A collection is a group of related documents that are stored together in MongoDB. Collections can be thought of as tables in a relational database.
3. Indexes: MongoDB supports various types of indexes, including single-field, compound, and geospatial indexes. Indexes are used to improve query performance.
4. GridFS: MongoDB's GridFS is a specification for storing and retrieving large files, such as images and videos, in MongoDB.
5. Aggregation: MongoDB's aggregation framework provides a way to perform complex data analysis operations, such as grouping, filtering, and sorting, on large datasets.
6. Transactions: MongoDB supports multi-document transactions, which allow multiple operations to be performed atomically.
7. Change streams: MongoDB's change streams provide a way to monitor changes to data in real-time, allowing applications to react to changes as they occur.
Overall, MongoDB provides access to a flexible and powerful data model that can handle a wide range of data types and use cases.
What is ELT?
ELT, standing for Extract, Load, Transform, is a modern take on the traditional ETL data integration process. In ELT, data is first extracted from various sources, loaded directly into a data warehouse, and then transformed. This approach enhances data processing speed, analytical flexibility and autonomy.
Difference between ETL and ELT?
ETL and ELT are critical data integration strategies with key differences. ETL (Extract, Transform, Load) transforms data before loading, ideal for structured data. In contrast, ELT (Extract, Load, Transform) loads data before transformation, perfect for processing large, diverse data sets in modern data warehouses. ELT is becoming the new standard as it offers a lot more flexibility and autonomy to data analysts.
What should you do next?
Hope you enjoyed the reading. Here are the 3 ways we can help you in your data journey: