View a markdown version of this page

Incremental Data Processing - Amazon EMR Migration Guide

Incremental Data Processing

Organizations migrating to Amazon EMR arrive from diverse starting points. Some move off Databricks and must decide whether to continue with Delta Lake or adopt an alternative. Others leave on-premises Hadoop clusters running Hive ACID tables and need a modern replacement. Many modernize legacy append-only data lakes that lack record-level changes. Regardless of origin, a key decision is selecting an open table format that supports the incremental processing patterns (inserts, updates, upserts, and deletes) that modern data lakehouses require.

The following decision guide orients you toward a starting format based on where you are migrating from:

  • Plain Hive or Parquet with broad multi-engine needs: start with Apache Iceberg.

  • Coming from Databricks or Delta Lake: use Delta Lake on Amazon EMR, or migrate to Iceberg through UniForm.

  • Existing Hudi or CDC upsert-heavy workloads: continue with Apache Hudi.

  • Greenfield on Amazon S3: use Apache Iceberg on S3 Tables.

This decision tree is a starting point. Validate it against your workload characteristics, team expertise, and integration requirements.

Decision tree guiding quick-start choices for incremental data processing.

Figure 25: Quick-Start Decision Tree

Three open table formats are the primary solutions on Amazon EMR: Apache Hudi, Delta Lake, and Apache Iceberg. Each provides ACID transactions, schema evolution, and time travel, but they differ in architecture, write patterns, and ecosystem integration.

Amazon EMR release 7.12.0 ships with Hudi 1.0.2, Delta Lake 3.3.2, and Iceberg 1.10.0 as first-class components. All three are supported on Amazon EMR Serverless and Amazon EMR on Amazon EKS, and they integrate with the AWS Glue Data Catalog, AWS Lake Formation, Athena, and Amazon Redshift.

Choosing a table format for your migration

Your source environment largely determines the most natural path. The following table maps common source environments to a recommended table format.

Recommended table format by source environment
Migrating from Recommended format Rationale
Plain Hive tables (Parquet or ORC on HDFS, no table format) Apache Iceberg Broadest engine support on AWS (Amazon EMR, Athena, Amazon Redshift, and AWS Glue). In-place migration from Hive is straightforward, because existing Parquet and ORC data files can be registered as Iceberg tables without rewriting.
Databricks (Delta Lake in production) Delta Lake on Amazon EMR, or migrate to Iceberg through UniForm If workloads remain connected to Databricks, keep Delta Lake for interoperability. If you consolidate fully on AWS, consider migrating to Iceberg. Delta Lake UniForm generates Iceberg metadata alongside Delta for a gradual transition.
Cloudera or HDP with Apache Hudi already in use Apache Hudi Continue with Hudi on Amazon EMR to minimize risk. Amazon EMR ships Hudi as a first-class component, with CDC ingestion through HoodieStreamer.
No existing table format, new greenfield on Amazon S3 Apache Iceberg on S3 Tables S3 Tables provides managed Iceberg with automatic compaction and no infrastructure to maintain.
Mixed environment (multiple formats in different teams) Apache Iceberg as the target, UniForm for the transition Standardize on Iceberg for new workloads. Use Delta Lake UniForm to provide Iceberg-readable metadata for existing Delta tables during the transition.

Key migration principle: you do not need to rewrite existing data files when you adopt a table format. Iceberg's migrate and add_files procedures register existing Parquet and ORC data in place, creating Iceberg metadata without data movement. For more information, see the Apache Iceberg on Amazon EMR table format migration section in Data Migration.

When you migrate from on-premises Hadoop, adopting a table format changes how your data lake behaves. On-premises Hadoop typically stores plain Hive tables without ACID guarantees, time travel, or automatic maintenance. We recommend adopting a table format for the following reasons:

  • ACID transactions prevent readers from seeing partial writes during ETL.

  • Schema evolution removes coordinated table drops and recreates.

  • Time travel replaces manual snapshot and backup procedures.

  • Hidden partitioning (Iceberg) removes the requirement for users to include partition columns in query predicates.

For detailed feature comparisons, see the Comparison of table formats section later in this chapter.

Apache Hudi

Apache Hudi is an open-source data management framework that simplifies incremental data processing by providing record-level insert, update, upsert, and delete capabilities. An upsert inserts a record if it is not present, or updates it if it is present. By managing data layout in Amazon S3, Hudi allows near-real-time ingestion and updates, and it maintains metadata to ensure that actions are atomic and consistent.

Hudi integrates with Apache Spark, Apache Hive, Presto, Trino (from Amazon EMR 6.1.0 and later), and Apache Flink. With Amazon EMR 5.28.0 and later, Amazon EMR installs Hudi components by default when Spark, Hive, Presto, or Flink are installed. Use Spark or the Hudi HoodieStreamer utility to create or update datasets, and query them with Hive, Spark, Presto, Trino, or Flink.

Amazon EMR 7.12.0 ships Hudi 1.0.2, which introduces a redesigned storage engine, improved indexing, non-blocking concurrency control, and a record-level metadata system.

Note

If you are migrating from Hudi 0.x, note that starting with Hudi 1.0 the DeltaStreamer ingestion utility was renamed to HoodieStreamer. Update your job scripts and configuration to reference org.apache.hudi.utilities.streamer.HoodieStreamer instead of the deprecated org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer. The old name might work as a compatibility alias, but this is not guaranteed.

Hudi supports two table types:

  • Copy on Write stores data in columnar Parquet only. Write operations update the version and rewrite files using a merge.

  • Merge on Read stores data in both columnar Parquet and row-based Apache Avro. Writes are stored as delta files. Compactions run at a scheduled frequency to produce new columnar files, either synchronously or asynchronously.

Hudi also provides snapshot isolation for readers, atomic writes of a batch of records, incremental pulls, de-duplication, and time travel queries.

Considerations for using Apache Hudi on Amazon EMR

The following considerations help you decide whether Hudi fits your workload, and how to configure it when it does.

Assess fit for your use case

Consider Hudi when you need to do the following:

  • Incrementally ingest data into a data lake.

  • Enforce data privacy regulations, such as GDPR and CCPA, where consumers can be forgotten or erased.

  • Apply change data capture to the data lake.

  • Bring data freshness to within minutes.

  • Provide point-in-time views.

Evaluate your data freshness SLA, concurrency, query latency, and access patterns. Hudi is not a replacement for OLTP systems, and it is not ideal where the incoming stream is append-only and the data is primarily not mutable.

Writing Hudi datasets

There are two ways to write Hudi datasets:

  • DeltaStreamer is a command line tool included with Hudi that operates against Amazon S3, Apache Kafka, and Apache Hive incremental pull. An incremental pull pulls only data that changed between two actions.

  • The Spark Datasource API lets you write your own code to ingest from a custom source and write the result as a Hudi dataset.

The following table helps you choose between DeltaStreamer and the Datasource API.

Choosing between DeltaStreamer and the Datasource API
DeltaStreamer Datasource API
Use DeltaStreamer when you want a simple, self-managed ingestion tool that automates data compaction and provides automated checkpointing without writing code. Use the Datasource API when you work with several varied data sources and want consolidated or derived tables, for example existing Spark-based ETL pipelines.
Use DeltaStreamer when you need to perform transformations on ingested data, such as dropping columns, casting, or filtering. DeltaStreamer supports a SQL query template for SQL-based transformations. Use the Datasource API when you have existing data pipelines that work with both Hudi-managed and non-Hudi-managed datasets.
DeltaStreamer is a good choice if you ingest from Kafka, or use AWS DMS to land files in Amazon S3, and do not want to write code. Use the Datasource API with Spark Structured Streaming to stream events into your Hudi dataset.

Choosing the table type for your workload

Use Copy on Write when the following are true:

  • Your job rewrites an entire table or partition to deal with updates.

  • Your workload is steady, without sudden bursts.

  • You already use Parquet.

  • You want operational simplicity, you replace existing Parquet files, and you have no need for real-time views.

Use Merge on Read when the following are true:

  • You want ingested data available for query as soon as possible.

  • Your workload has sudden spikes.

  • You want to collect the stream of changes and compact it periodically to reduce write amplification.

Comparison of Hudi table types
Table type Compactions Write throughput Data freshness SLA
Copy on Write N/A Medium Low
Merge on Read Inline Low High
Merge on Read Offline High High

Querying Hudi datasets

During Hudi writes with DeltaStreamer or the Datasource API, if Hive Sync is enabled, the dataset is available as a Hive table or in the AWS Glue Data Catalog, depending on how the cluster is launched. You can read it with Hive QL, Spark SQL, Presto, or Trino. Hudi provides different logical views.

Hudi query engines
Engine Views When to use
Spark SQL Read Optimized, Real time, Incremental Notebooks and data science, ML, and custom pipelines. Best support for incremental and streaming ETL.
Hive Read Optimized, Real time, Incremental Data warehousing ETL and incremental ETL pipelines.
Presto or Trino Read Optimized, Real time Interactive and ad hoc queries.
Flink Read Optimized, Real time, Incremental Streaming ETL and real-time analytics pipelines.

Compaction

A compaction merges log files with base files to generate new compacted files as a commit on the Hudi timeline. Compaction applies to Merge on Read. There are two ways to run it:

  • Synchronous (inline) compaction is triggered at ingestion after a commit or deltacommit, as part of insert, upsert, or bulk_insert. Use it when you want to quickly compact recent partitions and can wait for delta logs to accumulate for older partitions.

  • Asynchronous compaction runs as a separate scheduled or manual job. Use it when you do not want to block ingestion.

Deletes

Hudi supports two record-level delete types through a different record payload implementation. You perform deletes using the Hudi RDD API, the Datasource API, and DeltaStreamer:

  • Soft deletes keep the record key and null all other fields. Ensure that the fields are nullable, and upsert after you set the fields to null.

  • Hard deletes physically remove any trace of the record.

Performance and tuning

Hudi is an Apache Spark based library, so general Spark tuning applies. Use the following guidelines:

  • Amazon EMR cluster size: use memory-intensive nodes. AWS Graviton-based instances (R6g and R7g) offer up to 30% better price-performance than equivalent x86 instances (R5 and R6i) for Spark on Amazon EMR, and we recommend them as the default. R5 or R6i remain supported. Consider Instance Fleets that mix Graviton and x86 with Spot. Aim to fit input data in memory.

  • Input parallelism: this determines the number of files. Make it proportional to the target number of files. Hudi defaults to 1500, which might be too high.

  • File size: target 128-512 MB through limitFileSize 128 MB. The compactionSmallFileSize value of 100 MB defines the small-file threshold.

  • Off-heap memory: increase spark.yarn.executor.memoryOverhead or spark.yarn.driver.memoryOverhead if needed.

  • Spark memory: reduce spark.memory.fraction and spark.memory.storageFraction conservatively if you face OOM errors, which allows spill.

  • Kryo serialization: for Amazon EMR 7.3 and later with Hudi 0.15 and later, set spark.kryo.registrator=org.apache.spark.HoodieSparkKryoRegistrar.

Key Hudi properties
Property Description
hoodie.[insert|upsert|bulkinsert].shuffle.parallelism Parallelism determines the initial number of files in your table.
hoodie.parquet.max.file.size Target size for Parquet files produced by Hudi write phases.
hoodie.parquet.small.file.limit This should be less than maxFileSize.
hoodie.parquet.compression.ratio Expected compression of Parquet data used by Hudi.

Delta Lake

Delta Lake is an open-source storage layer framework that brings ACID transactions, scalable metadata handling, and unified streaming and batch processing to data lakes on Amazon S3. It originated at Databricks and is now a Linux Foundation project. Amazon EMR provides native support for Delta Lake starting with release 6.9.0, and Amazon EMR 7.12.0 ships Delta Lake 3.3.2 as a first-class component. Delta Lake is supported natively on Amazon EMR Serverless 7.1.0 and later, with no jars or the --packages option required. Delta tables registered in the AWS Glue Data Catalog are discoverable by Amazon Athena and Amazon Redshift Spectrum.

Delta Lake stores data in Parquet and maintains a transaction log, the _delta_log directory, that records every change to a table. This transaction log enables ACID transactions, time travel, and audit history.

Delta Lake provides the following key capabilities:

  • ACID transactions, with serializable isolation for concurrent reads and writes.

  • Schema enforcement and evolution.

  • Time travel, which lets you query previous versions of a table by timestamp or version number.

  • Unified batch and streaming, where the same table serves as a batch table and a streaming source or sink.

  • DML operations, including INSERT, UPDATE, DELETE, and MERGE through Spark SQL.

Considerations for using Delta Lake on Amazon EMR

The following considerations help you align Delta Lake with your Amazon EMR release, avoid known platform issues, and integrate Delta tables with other AWS analytics services.

Version compatibility and Amazon EMR release alignment

The Delta Lake version is bundled with each Amazon EMR release and cannot be upgraded independently. Delta Lake 3.3.x requires Apache Spark 3.5.x; running it on Spark 3.4 or earlier fails. Amazon EMR releases earlier than 6.9.0 do not include Delta Lake support.

The Delta Lake version also determines which protocol features are available, through the reader and writer versions. For example, UniForm requires minReaderVersion of 2 or higher and minWriterVersion of 7 or higher, which might not be achievable on older releases. Amazon EMR Serverless 7.1.0 and later ships Delta Lake natively. We recommend that you pin your Amazon EMR release in production and test Delta Lake feature compatibility before you upgrade.

Known limitations and platform-specific issues

Account for the following limitations when you run Delta Lake on Amazon EMR:

  • UniForm and convert-to-Iceberg statements are not supported on Amazon EMR 7.0. Target Amazon EMR 7.1.0 or later.

  • Column rename data loss: on Amazon EMR 6.9 and 6.10, performing a column rename on Delta data in Amazon S3 causes the column data to become NULL. This is resolved in Amazon EMR 6.11.

  • Amazon S3 URI scheme: use s3:// rather than s3a:// for Delta table paths on Amazon EMR for better performance, security, and reliability through EMRFS.

  • AWS Glue Data Catalog empty LOCATION: a database created outside Spark might have an empty LOCATION field, which causes an IllegalArgumentException. Always create AWS Glue databases with a valid, non-empty LOCATION.

Catalog integration with the AWS Glue Data Catalog

The AWS Glue Data Catalog is the default Hive-compatible metastore for Amazon EMR. To register Delta tables in AWS Glue, enable Use for Spark table metadata. Delta tables in AWS Glue then become discoverable by Amazon Athena and Amazon Redshift Spectrum, depending on format support.

The AWS Glue Data Catalog does not natively understand the Delta transaction log. It stores the table location, and the Delta client reads the _delta_log directory at query time.

Interoperability through Delta Lake UniForm

Delta Lake UniForm generates Iceberg metadata alongside Delta metadata, so Iceberg clients can read Delta tables without data duplication. There is one copy of the data on Amazon S3, Delta Lake remains the writer, and Iceberg clients such as Amazon Redshift, Amazon Athena, Snowflake, and Trino get read access through the generated Iceberg metadata.

Account for the following when you use UniForm:

  • UniForm is not supported on Amazon EMR 7.0. Use Amazon EMR 7.1.0 or later.

  • The delta-iceberg package is required.

  • UniForm tables are write-only from the Delta Lake side. Iceberg clients cannot write to them.

  • UniForm adds overhead, because Iceberg metadata is generated on each commit.

A common pattern is that Amazon EMR, through Spark, writes and manages Delta tables with UniForm enabled, the tables are registered in the AWS Glue Data Catalog, and Amazon Redshift queries them as Iceberg tables through the awsdatacatalog schema. This pattern eliminates manifest-based access or ETL to convert Delta tables for Amazon Redshift.

Catalog federation with Databricks Unity Catalog

AWS Glue supports catalog federation, which enables direct access to Iceberg tables managed in Databricks Unity Catalog through the AWS Glue Data Catalog. Federation uses an Iceberg REST API endpoint and OAuth authentication, and it supports read operations on Iceberg and UniForm-enabled Delta tables. It avoids manual catalog synchronization and provides fine-grained access control through AWS Lake Formation, including table, column, and row filters. Federation requires a federated catalog in AWS Glue that uses a DATABRICKSICEBERGRESTCATALOG connection type.

Performance and operational considerations

Use the following guidelines to operate Delta Lake efficiently on Amazon EMR:

  • Amazon S3 storage optimization: use the s3:// URI scheme exclusively on Amazon EMR. Enable Amazon S3 lifecycle policies to manage old log entries if you do not run VACUUM regularly.

  • Concurrency: Delta Lake uses optimistic concurrency control. Concurrent writers to the same table from multiple clusters can cause commit conflicts, so design your pipelines to minimize overlapping partition writes.

  • Table maintenance: run OPTIMIZE regularly to compact small files, and run VACUUM to remove old data files that are no longer referenced.

  • Monitoring: use the Spark UI and Amazon EMR metrics to monitor Delta Lake operation latency. Monitor Amazon S3 request rates for high-commit-frequency tables, because the _delta_log directory can become a hotspot.

Apache Iceberg

Apache Iceberg is an open table format for large analytic datasets in Amazon S3. It provides fast query performance over large tables, atomic commits, concurrent writes, and SQL-compatible table evolution. Starting with Amazon EMR 6.5.0, you can use Apache Spark 3 with the Iceberg table format. Amazon EMR 7.12.0 ships Iceberg 1.10.0.

Iceberg tracks individual data files in a table instead of directories. Writers create data files in place and add files only in an explicit commit. Table state is maintained in metadata files, and every change creates a new metadata file that atomically replaces the older one. The table metadata file tracks the schema, the partitioning configuration, and table properties.

Iceberg includes snapshots. A snapshot is a complete set of data files at a point in time. Snapshots are listed in the metadata file, with the files stored in separate manifest files. This design provides snapshot isolation: readers use the snapshot that is current when they load the metadata, and they are unaffected by changes until they refresh.

Diagram of the Apache Iceberg snapshot architecture.

Figure 26: Iceberg Snapshot Architecture

Apache Iceberg provides the following key features:

  • ACID transactions, with serializable isolation and atomic commits.

  • Time travel, which lets you query previous versions by snapshot ID or timestamp.

  • Schema evolution, which lets you add, drop, update, and rename columns without side effects.

  • Partition evolution, which lets you update the partition layout without rewriting data.

  • Hidden partitioning, which removes the need for users to understand partitioning or add filters.

  • Concurrent writers, through optimistic concurrency with file-level conflict resolution.

  • Open file formats, including Parquet, Avro, and ORC.

  • Version rollback, which lets you revert to a pre-transaction state.

  • Branching and tagging, with named branches and tags for Write-Audit-Publish patterns, staging, and validation.

  • Min-max statistics, where per-column statistics enable file skipping.

Considerations for using Apache Iceberg on Amazon EMR

The following considerations help you decide whether Iceberg fits your workload, and how to configure, write, and maintain Iceberg tables on Amazon EMR.

Assess fit for your use case

Iceberg suits the following use cases:

  • Large-scale analytics, where partition evolution and hidden partitioning simplify queries.

  • Multi-engine environments, where Spark, Trino, Flink, Hive, Amazon Athena, and Amazon Redshift access the same tables.

  • Change data capture and incremental processing, through MERGE and snapshot isolation.

  • Data privacy compliance, such as GDPR and CCPA row-level deletes and updates.

  • Time travel and audit for compliance.

Amazon S3 Tables integration

Introduced at re:Invent 2024, Amazon S3 Tables is the first cloud object store with built-in Apache Iceberg support. It provides a fully managed Iceberg experience with automatic compaction, snapshot management, and unreferenced file removal. S3 Tables is supported on Amazon EMR 7.5 or later and integrates with the AWS Glue Data Catalog. For configuration, benchmarks, and HDFS migration steps, see the S3 Tables auto-compaction section in Data Migration.

Configuring Amazon EMR Spark with the AWS Glue Iceberg REST catalog

Starting with Amazon EMR 7.5, you can configure Spark to use the AWS Glue Data Catalog as an Iceberg REST catalog endpoint. This is a standards-based interface that supports the full Iceberg catalog API, including namespace management, table creation, and multi-engine access. Set the following Spark properties:

spark.sql.catalog.glue = org.apache.iceberg.spark.SparkCatalog spark.sql.catalog.glue.type = rest spark.sql.catalog.glue.uri = https://glue.{region}.amazonaws.com/iceberg spark.sql.catalog.glue.rest.sigv4-enabled = true spark.sql.catalog.glue.rest.signing-region = {region} spark.sql.catalog.glue.rest.signing-name = glue spark.sql.catalog.glue.warehouse = {glue-catalog-id}

Replace {region} with your AWS Region, for example us-east-1, and replace {glue-catalog-id} with your AWS account ID or AWS Glue catalog ARN.

Multi-catalog hierarchy and cross-catalog access

The AWS Glue Data Catalog supports a multi-catalog hierarchy that enables cross-catalog access from a single Spark session. Amazon EMR Spark jobs can query Iceberg tables across multiple catalog sources without separate connections or data movement:

  • AWS Glue catalogs: access Iceberg tables across multiple accounts by configuring additional AWS Glue catalog references.

  • Federated catalogs for Databricks Unity Catalog: AWS Glue catalog federation enables direct read access to Iceberg and UniForm-enabled Delta tables in Databricks Unity Catalog through an Iceberg REST API endpoint with OAuth. Create a federated catalog using the DATABRICKSICEBERGRESTCATALOG connection type.

  • Snowflake Horizon: AWS Glue supports federation with the Snowflake Iceberg catalog, which enables Amazon EMR Spark jobs to query Snowflake-managed Iceberg tables without copying data.

As a result, an Amazon EMR Spark job can join data across an AWS Glue-managed Iceberg table, a Databricks-managed Delta table through UniForm, and a Snowflake-managed Iceberg table in a single query, governed by AWS Lake Formation permissions.

Writing Iceberg datasets

Iceberg supports writing through multiple engines on Amazon EMR:

  • Apache Spark provides full read and write support, including INSERT, UPDATE, DELETE, and MERGE through Spark SQL and the DataFrame API. It is the primary write engine.

  • Apache Flink provides streaming writes, which enable real-time ingestion on Amazon EMR on EKS from release 7.2.0.

  • Trino and Presto provide read and write access for interactive analytics.

Iceberg engine support on Amazon EMR
Engine Capabilities When to use
Spark SQL Read, Write, DDL, Time Travel, MERGE ETL pipelines, data science, ML, primary write engine
Trino or Presto Read, Write, DDL Interactive and ad hoc queries, BI dashboards
Flink Read, Write (streaming) Real-time streaming ingestion, CDC pipelines
Hive Read Legacy Hive-based ETL workloads
Amazon Athena Read, Write, DDL, Time Travel Serverless ad hoc queries, data exploration

Table maintenance

Maintain Iceberg tables with the following operations:

  • Compaction: rewrite small data files into larger files through the rewrite_data_files procedure.

  • Snapshot expiration: remove old snapshots through expire_snapshots.

  • Orphan file removal: remove unreferenced files through remove_orphan_files.

  • Sort order optimization: rewrite data files with a specific sort order.

With Amazon S3 Tables, compaction, snapshot management, and unreferenced file removal are handled automatically.

Deletes

Iceberg supports two delete strategies:

  • Copy-on-write deletes rewrite affected data files without the deleted rows. This is best for infrequent deletes and read-heavy access.

  • Merge-on-read deletes write delete files that mark rows as deleted without rewriting data files. This is best for write-heavy workloads with frequent deletes, and it requires periodic compaction.

Performance and tuning

Use the following guidelines to tune Iceberg on Amazon EMR:

  • Amazon EMR cluster size: use memory-intensive nodes such as R6g, R7g, R5, and R6i. Consider Instance Fleets and Spot.

  • File size: target 128-512 MB, and use rewrite_data_files to compact.

  • Partition strategy: leverage hidden partitioning and partition evolution to avoid full rewrites.

  • Metadata management: regularly expire snapshots and remove orphan files.

  • Amazon S3 URI scheme: use s3:// on Amazon EMR.

  • AWS Glue Data Catalog: register Iceberg tables for cross-service discovery, and use AWS Lake Formation for fine-grained access control, including table, row, column, and cell-level permissions, supported from Amazon EMR 7.10 and later.

Key Iceberg properties
Property Description
write.target-file-size-bytes Target size for data files (default 512 MB).
write.metadata.delete-after-commit.enabled Automatically clean up old metadata files after commits.
write.spark.fanout.enabled Enable the fanout writer for unordered writes to improve throughput.
read.split.target-size Target split size for read tasks to control parallelism.
write.delete.mode Delete mode: copy-on-write or merge-on-read.

Sample architecture

The following workflow describes an end-to-end architecture for ingesting incremental data with Apache Iceberg on Amazon EMR:

  • Ingestion: data from third-party APIs, on-premises databases, files, and streaming sources is ingested into Amazon S3 using Amazon EMR, AWS Lambda, AWS Database Migration Service, AWS Transfer Family, AWS Glue, or Amazon Data Firehose.

  • Data processing: Amazon EMR processes raw data through a medallion architecture (Raw to Transformed to Conformed) as Iceberg tables, governed by AWS Lake Formation and Data Quality rules, with all tables registered in the AWS Glue Data Catalog.

  • First-party consumption: Amazon Athena, Amazon EMR, and Amazon Redshift query the Iceberg tables directly through the AWS Glue Data Catalog, with time travel and snapshot isolation.

  • Third-party catalog integration: AWS Glue catalog federation enables cross-catalog access to Iceberg tables in external platforms such as Apache Polaris, Snowflake Horizon, and Databricks Unity Catalog.

  • Amazon SageMaker Lakehouse integration: when Iceberg tables are registered in the AWS Glue Data Catalog, they are automatically accessible through Amazon SageMaker Lakehouse. This provides a unified governance plane where Amazon EMR, Amazon Redshift, Amazon Athena, and Amazon SageMaker notebooks query the same tables with consistent AWS Lake Formation access controls. For migrating organizations, a single security model replaces fragmented on-premises controls such as Ranger, HDFS ACLs, and custom policies.

Diagram showing incremental data ingestion with Apache Iceberg on Amazon EMR.

Figure 27: Ingesting incremental data with Apache Iceberg on Amazon EMR

Comparison of table formats

The following table compares Apache Hudi, Delta Lake, and Apache Iceberg on Amazon EMR.

Comparison of table formats on Amazon EMR
Feature Apache Hudi Delta Lake Apache Iceberg
Amazon EMR support since 5.28.0 6.9.0 6.5.0
Latest version (Amazon EMR 7.12.0) Hudi 1.0.2 Delta 3.3.2 Iceberg 1.10.0
ACID transactions Yes Yes Yes
Schema evolution Yes Yes Yes (full, including partition evolution)
Time travel Yes Yes Yes
Streaming support Spark Streaming, DeltaStreamer, Flink Spark Structured Streaming Spark Streaming, Flink
Table types Copy on Write, Merge on Read Single (Parquet-based) Copy-on-Write, Merge-on-Read (for deletes)
Incremental queries Native incremental pull Change Data Feed Incremental scan through snapshots
Multi-engine support Spark, Hive, Presto, Trino, Flink Spark (primary), Trino, Presto Spark, Trino, Flink, Hive, Amazon Athena, Amazon Redshift
Partition evolution No No Yes (hidden partitioning)
AWS Glue Data Catalog Yes Yes Yes
AWS Lake Formation fine-grained access control Yes (Amazon EMR 7.10 and later) Yes (through UniForm and Iceberg) Yes (Amazon EMR 7.10 and later)

When to choose each format

  • Choose Apache Hudi when your primary use case is CDC ingestion with near real-time freshness, you need built-in tools such as DeltaStreamer for codeless ingestion, or you require fine-grained control over compaction (inline compared with async).

  • Choose Delta Lake when your organization uses Databricks alongside AWS, you need UniForm for cross-format interoperability, or you want tight integration with the Databricks ecosystem, including Unity Catalog federation.

  • Choose Apache Iceberg when you need the broadest multi-engine support, when hidden partitioning and partition evolution matter for your query patterns, or when you want to use S3 Tables for fully managed table maintenance.

Security considerations

Apply the following security practices when you run open table formats on Amazon EMR:

  • Use AWS Lake Formation for fine-grained access control on tables registered in the AWS Glue Data Catalog, including table, row, column, and cell-level permissions for Hudi and Iceberg tables on Amazon EMR 7.10 and later.

  • For catalog federation with Databricks Unity Catalog, OAuth-based authentication is used. Store client secrets in AWS Secrets Manager.

  • Ensure that Amazon EMR instance profiles and runtime roles follow least-privilege access for Amazon S3 bucket access.

  • Use Amazon EMR runtime roles for per-job access control for Spark and Hive workloads.

  • When you use Delta Lake UniForm, secure both the Delta and Iceberg metadata paths on Amazon S3, because either path provides access to the underlying data.