Atlan’s AWS Glue connector reads your Glue databases, tables and jobs into its context layer. You can set up Iceberg on AWS Glue in five steps, from a Glue job to a table other engines can read. Atlan’s January 2026 benchmark, with methods in its research report, found that rich semantic metadata improved the accuracy of AI-generated SQL by 38%: the win rate rose from 16.1% to 22.2%, a relative gain, across 522 evaluations of 174 queries on one 13-table dataset.
Glue and Iceberg tell an engine where a table lives and what its columns are called. Atlan’s AWS Glue connector reads Glue databases, tables and jobs. The Context Lakehouse makes what Atlan knows about them queryable as Iceberg tables from Snowflake, Spark, Databricks and Athena.
Apache Iceberg is an open table format. AWS Glue is AWS’s serverless data integration service, and it also hosts the Glue Data Catalog. Put them together and a Glue job writes an Iceberg table to Amazon S3. The Data Catalog records it.
Any compatible engine that can reach the catalog and the S3 data can read it.
If you are a data engineer or platform owner on AWS, the setup is the quick part. The costly part comes later, when an AI agent queries those tables and has to guess what each column means. A wrong guess becomes a wrong answer that someone acts on. New to the format? Start with Apache Iceberg 101.
Apache Iceberg and AWS Glue: What’s the scope of this integration?
AWS Glue works with Apache Iceberg in two central ways:
- ETL and integration: Glue jobs read from and write to Iceberg tables stored in Amazon S3 with Spark-based pipelines.
- Catalog for Apache Iceberg: the Glue Data Catalog can serve as the catalog for Iceberg tables, storing the metadata engines need to find and open them.
Teams use Glue for both, or for one. A team can write tables with Spark on EMR and still register them in Glue. Another can run Glue jobs against tables in a different Iceberg catalog.
A shared enterprise context layer sits above either setup. The Polaris, Unity Catalog, Glue and Open Catalog comparison covers that choice.
AWS Glue: The serverless ETL and integration tool
AWS Glue 3.0 and later support the Apache Iceberg framework. Glue runs the Spark environment, and each Glue version bundles one Iceberg version:
| AWS Glue version | Bundled Iceberg version |
|---|---|
| 3.0 | 0.13.1 |
| 4.0 | 1.0.0 |
| 5.0 | 1.7.1 |
| 5.1 | 1.10.0 |
To turn Iceberg on for a job, set iceberg as the value of the --datalake-formats job parameter and add the Spark catalog settings from the next section. Separately from the library version, Glue 6.0 supports Iceberg table format versions 2 and 3 and creates v2 tables by default. Upgrading a table from v2 to v3 is a one-way change, and Athena operates on v2 tables only, so check every engine that reads the table before you upgrade. Iceberg v3 support differs by engine.
Iceberg adds ACID transactions and schema and partition evolution to the data lake. The examples below create a table, then read it two ways. First, create the table and register it in the Glue Data Catalog.
dataFrame.createOrReplaceTempView("<tmp_tbl_name>")
create_table_query = f"""
CREATE TABLE glue_catalog.<db_name>.<tbl_name>
USING Iceberg
TBLPROPERTIES ("format-version"="2")
AS SELECT * FROM <tmp_tbl_name>
"""
spark.sql(create_table_query)
Read it with Glue Context:
from awsglue.context import GlueContext
from pyspark.context import SparkContext
sc = SparkContext()
glueContext = GlueContext(sc)
dataFrame = glueContext.create_data_frame.from_catalog(
database="<db_name>",
table_name="<tbl_name>",
additional_options=additional_options
)
Or read it with Spark:
dataFrame = spark.read.format("iceberg").load("glue_catalog.<db_name>.<tbl_name>")
Lake Formation permissions and custom Iceberg versions
The dataFrame and additional_options values come from your own job.
For tables registered with Lake Formation, the job’s IAM role needs SELECT to read and SUPER to write. From Glue 5.0 onward, Lake Formation can apply table, row, column and cell level access controls to read queries in Glue for Spark jobs on Iceberg tables.
AWS lists the limits on its Lake Formation page.
Need an Iceberg version Glue does not bundle? Pass your own JAR files with the --extra-jars job parameter and leave iceberg out of --datalake-formats. On Glue 5.0 and later, also set --user-jars-first true.
AWS Glue Data Catalog: The technical catalog for Iceberg tables
Apache Iceberg keeps table metadata, such as the schema, partitioning and snapshots, in a metadata file. Each commit writes a new metadata file and swaps the table’s metadata file pointer to it, and the Iceberg spec says a catalog supplies the table’s location. The Glue Data Catalog can be that catalog for tables in Amazon S3.
The Iceberg documentation says that with the Glue Data Catalog, an Iceberg namespace is stored as a Glue database. An Iceberg table is stored as a Glue table. That holds for self-managed Iceberg tables. Tables in Amazon S3 Tables buckets use their own namespaces.
To use Glue as the catalog for a Spark workload, set the Iceberg Spark session extension, the Glue catalog implementation, the S3 warehouse location and the S3 file I/O implementation. In a Glue job, the same settings go in the --conf job parameter.
spark-sql \
--conf spark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions \
--conf spark.sql.defaultCatalog=glue_catalog \
--conf spark.sql.catalog.glue_catalog=org.apache.iceberg.spark.SparkCatalog \
--conf spark.sql.catalog.glue_catalog.warehouse=s3://my-bucket/my/key/prefix \
--conf spark.sql.catalog.glue_catalog.catalog-impl=org.apache.iceberg.aws.glue.GlueCatalog \
--conf spark.sql.catalog.glue_catalog.io-impl=org.apache.iceberg.aws.s3.S3FileIO
Locking for concurrent writers
Concurrent writers need a locking rule. Glue 3.0 with Iceberg 0.13.1 needs the DynamoDB lock manager for atomic transactions. Glue 4.0 and later use optimistic locking by default. Athena supports Glue optimistic locking only, and AWS warns that modifying a table from Athena under any other lock implementation can cause data loss.
With the catalog set, Spark jobs read and write Iceberg tables in the Glue Data Catalog unless a job names another catalog.
Glue Crawlers
Tables you create through Glue as the catalog are already registered. Glue Crawlers fit tables whose metadata already sits in S3.
For an Iceberg data store, you give the crawler an S3 path that holds the metadata of your Iceberg tables. When it finds table metadata, it registers the table in the Data Catalog, and you can schedule it to keep the table current.
AWS says to use an Iceberg crawler only when it is the sole writer to that Data Catalog table. If Spark or another engine commits to the same table while the crawler runs, the crawler fails to update it. For tables Spark already writes through Glue, skip the crawler.
How do you set up Iceberg on AWS Glue, step by step?
Setting up Iceberg on Glue takes a short list of prerequisites and five steps. Each step ends with a check.
What are the prerequisites?
You need a Glue 3.0 or later job, an S3 path for the warehouse, and an IAM role for the job. If the table is registered with Lake Formation, you also need Lake Formation grants for that role.
What are the steps?
Five steps take a Glue job from nothing to a readable Iceberg table.
- Set the job up. Give the job’s IAM role access to the S3 warehouse path and the Glue Data Catalog. Set
--datalake-formatstoicebergand set the--confjob parameter to the Spark settings above, starting withspark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions. Done when: the job starts withglue_catalogas its catalog. - Create the table. Run the
CREATE TABLE ... AS SELECTstatement above. Keepformat-versionat 2 unless every engine that reads the table supports 3. Done when: the table appears in your Data Catalog database. - Read it back. Use Glue Context or
spark.read.format("iceberg"). Done when: the DataFrame returns the rows you wrote. - Add Lake Formation if the table is registered with it. Grant the job’s IAM role SELECT to read and SUPER to write. Done when: a read and a write both succeed under that role.
- Let other engines in. Point Athena, EMR or Redshift at the Glue database, or connect an outside engine to the Glue Iceberg REST endpoint. Done when: the engine lists your table.
What are the common errors with Iceberg on Glue?
- A crawler fails to update a table when another writer changes it during the crawl.
- A table modified from Athena under a lock other than Glue optimistic locking can lose data.
- A v3 upgrade cannot be undone, and Athena works on v2 tables only.
- On Glue 3.0 with Iceberg 0.13.1,
ALTER TABLE ... RENAME TOis not available, and the DynamoDB lock manager is required. - On Glue 5.0 and later, a custom Iceberg JAR needs
--user-jars-first true.
Test one write from every engine that will touch the table before you roll it out.
How do other engines read Iceberg tables in the Glue Data Catalog?
Amazon Athena, Amazon EMR and Amazon Redshift work with Iceberg tables cataloged in Glue. AWS says Redshift reads them through an external schema on the Glue database.
For speed, AWS recommends column statistics generated with Glue. Engines outside AWS reach the catalog through the Glue Iceberg REST endpoint. It supports the operations in the Apache Iceberg REST specification, such as listing namespaces, creating tables and loading tables, at an endpoint such as https://glue.us-east-1.amazonaws.com/iceberg.
It authenticates with AWS Signature Version 4, the default for AWS SDKs and AWS engines. It also accepts an OAuth 2.0 bearer token. AWS describes that option for external integration partners and third-party engines, and it uses an AWS Sign-In token exchange. Glue supports single-level namespaces only. A multi-level catalog hierarchy is reached through the catalog name.
How do Snowflake and Databricks use Glue?
- Snowflake supports the Glue Data Catalog as an external catalog for Iceberg tables. Its documentation recommends a catalog integration for the Glue Iceberg REST endpoint. That endpoint supports more Iceberg table features than the Glue API integration, and it can use catalog-vended credentials.
- Databricks connects to the Glue Data Catalog through catalog federation. Unity Catalog crawls Glue to fill a foreign catalog. Databricks documents access control, lineage (where data comes from and where it flows) and auditing for it in Unity Catalog. The Unity Catalog and Glue comparison lays out where each fits.
Federation settles reads.
It does not settle which definition of “active customer” is the approved one when three catalogs hold three tables. A multi-cloud context layer is where one approved definition and its owner get recorded. Whether a catalog can sit on top of existing catalogs is the same question from the catalog side. Settle the approved definition before you federate, not after.
What context does an AI agent need beyond the catalog?
The Glue Data Catalog holds technical metadata: databases, tables, schemas and locations, plus the descriptions, properties and Lake Formation tags your teams add. Lake Formation grants and enforces access to those tables in AWS engines.
Atlan adds glossary terms, owners, certifications and lineage from every platform. A data catalog and a context layer answer different questions.
Before an AI agent acts, it needs to know what is PII, what policies apply, who can access what, and what is certified. A catalog built for AI has to carry all four, and the context layer for data engineering teams shows the pattern in practice. Classification and tag management is where most teams start, and Glue and Lake Formation tags are a natural source.
How does Atlan connect to an Iceberg and Glue estate?
Atlan is the context layer for AI.
Which Atlan pieces connect to Glue and Iceberg?
Four of them:
- Atlan’s AWS Glue connector catalogs Glue databases, tables and jobs with lineage (the docs list what Atlan crawls from AWS Glue). It imports Glue properties, Glue resource tags and Lake Formation tags as Atlan tags. See Lake Formation and Atlan and the Glue Data Catalog and a cross-cloud governance layer for the AWS-side detail, and data lineage for AI for why lineage matters to agents.
- Atlan’s Iceberg connector, in public preview, crawls catalogs, namespaces, tables and columns from Iceberg REST catalogs. It adds partition status and snapshot details to each table. The Atlan docs list every field.
- The Context Lakehouse stores what Atlan knows about your data estate as Apache Iceberg tables, served through a catalog built on Apache Polaris. Snowflake, PySpark, Databricks and Athena each have a setup guide. Athena connects through Glue Catalog Federation, so the Glue Data Catalog lists the Lakehouse tables. These tables hold Atlan metadata, not copies of your business tables. See the Athena setup.
- The Atlan MCP server serves that context to agents. MCP, the Model Context Protocol, is the open standard AI agents use to call tools. See MCP for a connected data catalog, MCP for data governance and what Atlan MCP is.
Where does access enforcement happen?
Access is the part that no single engine covers. Lake Formation enforces rules for AWS engines, and each other platform enforces its own, so enforcement stays with IAM, Lake Formation and those engines.
A context layer adds one place that records the classifications, owners and certifications an agent should check first. Atlan describes this pattern as a dual plane of context and control. Policy as code and policy enforcement across operational and analytical AI go deeper, and role-based access in a context layer shows how personas map across engines. Atlan keeps stewards on the loop: with human-on-the-loop governance, agents do the volume work and stewards approve.
Two nearby AWS services raise the same question. The DataZone and Glue comparison covers where each one stops, and Iceberg and Parquet explains what the table format adds over plain files.
Teams on other platforms ask it too. Snowflake teams can read how Snowflake Horizon and a context layer fit together, and Databricks teams can see how Unity Catalog differs from Hive Metastore. A model-agnostic context layer keeps definitions out of any one catalog, so a second engine or catalog adds a connector rather than a new glossary.
Business definitions are the other gap. A business glossary and KPI definitions bound to Glue tables give an agent the meaning behind a column name. The context layer reference architecture shows where that sits next to the catalog. Whichever engines you add, keep the definitions in one place.
Apache Iceberg and AWS Glue: Summing up
Glue and Iceberg give an AWS team a transactional table format, a serverless Spark engine and a catalog that Athena, EMR and Redshift already read.
The Iceberg REST endpoint extends that catalog to engines outside AWS. What stays open is meaning: owners, definitions, lineage and the policies an agent must respect. Atlan’s Iceberg connector docs list what Atlan reads from Iceberg. Decide where that meaning lives before the first agent queries the table.
FAQs about Apache Iceberg and AWS Glue
Short answers to the questions data teams ask most about running Iceberg with Glue.
1. What is the difference between Apache Iceberg and AWS Glue?
Apache Iceberg is an open table format for large analytic tables. AWS Glue is a serverless data integration service that also hosts the Glue Data Catalog. Teams use Glue jobs to read and write Iceberg tables and the Data Catalog to track them.
2. Can AWS Glue Data Catalog be used with Apache Iceberg?
Yes. The Glue Data Catalog can serve as a catalog for Iceberg tables. The Iceberg documentation says an Iceberg namespace is stored as a Glue database and an Iceberg table is stored as a Glue table.
3. Can AWS Glue read from and write to Apache Iceberg tables?
Yes. AWS Glue 3.0 and later support Iceberg, and Spark jobs can read and write Iceberg tables in Amazon S3. Each Glue version bundles one Iceberg version, and you can supply your own JAR files for a different one.
4. Can engines outside AWS use the Glue Data Catalog for Iceberg?
Yes. The Glue Iceberg REST endpoint follows the Apache Iceberg REST spec. It accepts AWS Signature Version 4 or an OAuth 2.0 token. Snowflake documents a catalog integration for it. Databricks reaches Glue through catalog federation.
5. Why does a context layer matter for Apache Iceberg and AWS Glue?
Glue and Iceberg record technical metadata. A context layer adds business definitions, ownership, lineage and policy context, so people and AI agents know how data should be interpreted, accessed and used.
6. How does Atlan work with Apache Iceberg and AWS Glue?
Atlan has a dedicated AWS Glue connector and an Iceberg connector for REST catalogs, which is in public preview. The Context Lakehouse stores context as Apache Iceberg tables behind a catalog built on Apache Polaris, and Athena connects to it through AWS Glue Catalog Federation.
Sources
- AWS Glue: Iceberg framework
- AWS Glue: crawler data sources
- AWS Glue: Iceberg REST endpoint
- AWS: Lake Formation with Glue
- Amazon Redshift: Iceberg tables
- Apache Iceberg: AWS integrations
- Snowflake: AWS Glue catalog integration
- Databricks: Enable Hive metastore federation for AWS Glue metastores (docs.databricks.com/aws/en/query-federation/hms-federation-glue)
- Atlan: AWS Glue connector
- Atlan: Iceberg connector
- Atlan: Lakehouse architecture
- Atlan: Athena and the Lakehouse
- Atlan: Metadata Research Report
- Atlan: governed metadata and SQL accuracy
- Amazon Athena: Iceberg tables
- Apache Iceberg: table spec
- AWS: What is AWS Glue?