BasekickLabs

Apache Iceberg Export

Publish Arc measurements as Apache Iceberg tables so Spark, Trino, DuckDB, and PyIceberg can read them directly, configured through the iceberg section of arc.toml.

Publish Arc's data as Apache Iceberg tables so any Iceberg-aware engine — Spark, Trino, DuckDB, Snowflake, PyIceberg — can query it directly, without going through Arc.

Availability

Iceberg export is available in Arc 26.09.1+. Enable it with iceberg.enabled = true.

What it is

Apache Iceberg is an open table format: a metadata layer that turns a collection of data files into a coherent, transactional table with schema, snapshots, and partition information. It is not a file format — Iceberg tables are backed by Parquet (which Arc already writes).

Arc's Iceberg export is a background reconciler that registers Arc's existing Parquet files into an Iceberg table by reference, and keeps the table's file list in sync as compaction and retention change the underlying files.

Why use it

  • No lock-in, taken further. Arc already stores open Parquet files you own. Iceberg export makes those same files a standard lakehouse table that the entire Iceberg ecosystem can read — no proprietary API in the path.
  • Zero-copy. Files are registered in place using Iceberg's add_files semantics. No data is copied or rewritten, so there is effectively no storage overhead beyond small Iceberg metadata. (This is a real differentiator: many streaming/TSDB systems re-export data into new Parquet; Arc doesn't need to, because it already writes Parquet.)
  • Query with your existing tools. Spark, Trino, DuckDB, Snowflake, Dremio, and PyIceberg all read Iceberg. Point them at Arc's data instead of building a custom connector.
  • Ingest is untouched. The export runs in the background and never touches Arc's high-throughput write path.

How it works

  1. Arc ingests as usual, writing Parquet under {database}/{measurement}/{Y}/{M}/{D}/{H}/.
  2. On a timer (default every 5 minutes), the reconciler walks each measurement's Parquet files and diffs them, by path and size, against the Iceberg table's current file set. Since 27.01.1, on a standalone node, an ingest flush also asks for an export of its table (the ingest trigger, iceberg.ingest_export_interval, default 60 s), so new files reach the table within about a minute instead of at the next timed pass.
  3. It commits the delta in one Iceberg snapshot — adding newly-written files and removing files that compaction/retention deleted — without rewriting any data. Since 27.01.1 the row-level delete API publishes a rewritten file under a fresh path rather than replacing the original in place, so a partial delete reaches the table as a normal add-and-remove.
  4. Old snapshots are expired on a retention policy so metadata stays bounded. A pass that removes any file expires all older snapshots, because they reference files Arc has deleted — see Time travel below.

Because the reconciler is driven by what's actually on storage (not a transient event stream), it is self-healing: a missed or failed pass simply converges on the next tick. Measurements whose file set hasn't changed since the last pass are skipped entirely, so steady state is cheap.

This holds all the way to zero: if retention ages out every file in a measurement, the table is reconciled to empty rather than left pointing at files that no longer exist — so external engines see an empty table instead of failing on missing paths.

Tables are created per database/measurement in the namespace <namespace_prefix>_<database> (default prefix arc), e.g. arc_mydb.sensors.

Quick start

# arc.toml
[storage]
backend = "local"          # "local" or "s3" (see Limitations)

[iceberg]
enabled = true             # default: false

Or via environment variable:

ARC_ICEBERG_ENABLED=true

Restart Arc. Ingested measurements appear as Iceberg tables under your storage root ({local_path}/arc_<database>.db/<measurement>/): within about a minute on a standalone node since 27.01.1 (the ingest trigger), otherwise within one reconcile interval.

On S3

Iceberg export also runs on an S3 primary, on AWS or an S3-compatible store:

[storage]
backend = "s3"
s3_bucket = "my-arc-bucket"
s3_prefix = "prod/"        # optional
s3_region = "us-east-1"

[iceberg]
enabled = true

Tables land under the storage root, at s3://my-arc-bucket/prod/arc_<database>.db/<measurement>/.

  • Credentials: the export uses Arc's own S3 credentials and renews them the same way Arc does: static keys, the default chain, IRSA on EKS, or an assumed role. No credential is written into Iceberg metadata, the catalog or the logs.
  • Endpoint: storage.s3_endpoint and storage.s3_path_style apply to the export too. The AWS_S3_ENDPOINT environment variable does not change where it writes.
  • Readers: readers need their own read access to the bucket.
  • Enabling on an existing deployment: the first pass registers every existing data file. It reads each file's footer twice (two ranged GETs, never the whole object). After a restart, an unchanged table reads no footers.

Reading the tables

DuckDB

The simplest way to read a table — point iceberg_scan at the table directory:

INSTALL iceberg; LOAD iceberg;

SELECT count(*)
FROM iceberg_scan('/var/lib/arc/data/arc_mydb.db/cpu');

Arc emits a version-hint.text in each table's metadata/ directory, so directory-based readers like DuckDB resolve the current snapshot without needing the exact metadata filename.

On S3, give DuckDB an S3 secret and point it at the table's s3:// directory:

INSTALL iceberg; LOAD iceberg; INSTALL httpfs; LOAD httpfs;

CREATE SECRET (TYPE s3, PROVIDER credential_chain, REGION 'us-east-1');
-- S3-compatible store: TYPE s3, KEY_ID '…', SECRET '…', ENDPOINT 'minio:9000', URL_STYLE 'path', USE_SSL false

SELECT count(*)
FROM iceberg_scan('s3://my-arc-bucket/prod/arc_mydb.db/cpu');

PyIceberg

PyIceberg can read through Arc's SQLite catalog directly:

from pyiceberg.catalog.sql import SqlCatalog

cat = SqlCatalog("arc", **{
    "uri": "sqlite:////var/lib/arc/data/arc.db",     # Arc's catalog DB
    "warehouse": "file:///var/lib/arc/data",          # storage root
})

table = cat.load_table(("arc_mydb", "cpu"))
df = table.scan().to_arrow()
print(df.num_rows, df.column_names)

On S3, pass PyIceberg the s3.* properties. Arc's SQLite catalog is on the node that runs the reconciler, so from any other host load the table from its directory instead; PyIceberg resolves the current version from version-hint.text:

from pyiceberg.table import StaticTable

s3 = {
    "s3.region": "us-east-1",
    # S3-compatible store:
    # "s3.endpoint": "http://minio:9000",
    # "s3.access-key-id": "…", "s3.secret-access-key": "…",
}

table = StaticTable.from_metadata("s3://my-arc-bucket/prod/arc_mydb.db/cpu", properties=s3)
print(table.scan().to_arrow().num_rows)

On the reconciler node, the catalog works with the same properties: SqlCatalog("arc", uri="sqlite:////var/lib/arc/data/arc.db", warehouse="s3://my-arc-bucket/prod", **s3).

Apache Spark

Read a table from its directory with the Iceberg runtime and a Hadoop-style catalog, or load it directly:

df = (spark.read.format("iceberg")
      .load("file:///var/lib/arc/data/arc_mydb.db/cpu"))
df.printSchema()
df.createOrReplaceTempView("cpu")
spark.sql("SELECT count(*) FROM cpu").show()

On S3, add hadoop-aws and map the s3:// scheme Arc writes to the S3A filesystem:

from pyspark.sql import SparkSession

spark = (SparkSession.builder
    .config("spark.jars.packages",
            "org.apache.iceberg:iceberg-spark-runtime-3.5_2.12:1.7.1,"
            "org.apache.hadoop:hadoop-aws:3.3.4")
    .config("spark.hadoop.fs.s3.impl", "org.apache.hadoop.fs.s3a.S3AFileSystem")
    # S3-compatible store: fs.s3a.endpoint, fs.s3a.path.style.access, fs.s3a.access.key / secret.key
    .getOrCreate())

df = spark.read.format("iceberg").load("s3://my-arc-bucket/prod/arc_mydb.db/cpu")

Through Arc's REST catalog

Since 27.01.1, Arc can serve its tables through the Iceberg REST catalog protocol, so an engine lists namespaces and tables and loads each table's current version instead of addressing metadata files by path. Turn it on with:

[iceberg]
enabled = true
rest_catalog_enabled = true

The catalog URI is your Arc base URL followed by /iceberg, for example https://arc.example.com/iceberg. Clients add the spec's /v1/... paths themselves. Authenticate with an Arc token as a bearer token.

  • Names: the same as everywhere else in the export: the namespace <prefix>_<database> (arc_mydb), and one table per measurement.
  • Read-only: Arc is the only writer of its tables. Create, commit, rename and drop are refused (406), and /v1/config does not advertise them, so clients do not try.
  • Storage credentials: Arc does not hand them out. Each engine reads the Parquet and metadata files with its own storage credentials (its S3 settings, or Snowflake's external volume).
  • What a load returns: the version version-hint.text names, the same file directory readers use. Every node that sees the warehouse answers the same, and each load reads it fresh.

PyIceberg

from pyiceberg.catalog import load_catalog

cat = load_catalog("arc", type="rest", uri="https://arc.example.com/iceberg", token="<arc token>",
                   **{"s3.region": "us-east-1"})   # plus s3.endpoint / keys for an S3-compatible store
print(cat.list_tables("arc_mydb"))
df = cat.load_table("arc_mydb.cpu").scan(row_filter="host = 'server01'").to_pandas()

DuckDB

INSTALL iceberg; LOAD iceberg;
CREATE SECRET arc_token (TYPE iceberg, TOKEN '<arc token>');
-- and an S3 secret for the data files: CREATE SECRET (TYPE s3, ...)
ATTACH 'arc' AS arc (TYPE iceberg, SECRET arc_token, ENDPOINT 'https://arc.example.com/iceberg');
SELECT count(*) FROM arc.arc_mydb.cpu;

Spark

spark = (SparkSession.builder
    .config("spark.sql.catalog.arc", "org.apache.iceberg.spark.SparkCatalog")
    .config("spark.sql.catalog.arc.type", "rest")
    .config("spark.sql.catalog.arc.uri", "https://arc.example.com/iceberg")
    .config("spark.sql.catalog.arc.token", "<arc token>")
    .getOrCreate())
spark.table("arc.arc_mydb.cpu").show()

Trino (etc/catalog/arc.properties; the Trino guide runs it end to end on-prem with SeaweedFS)

connector.name=iceberg
iceberg.catalog.type=rest
iceberg.rest-catalog.uri=https://arc.example.com/iceberg
iceberg.rest-catalog.security=OAUTH2
iceberg.rest-catalog.oauth2.token=<arc token>

Snowflake

The Snowflake guide walks through this in Snowsight, from the IAM role to a catalog-linked database. In short: an external volume over the bucket, read-only, and a catalog integration that points at Arc:

CREATE CATALOG INTEGRATION arc_catalog
  CATALOG_SOURCE = ICEBERG_REST
  TABLE_FORMAT = ICEBERG
  CATALOG_NAMESPACE = 'arc_mydb'
  REST_CONFIG = (CATALOG_URI = 'https://arc.example.com/iceberg' CATALOG_API_TYPE = PUBLIC)
  REST_AUTHENTICATION = (TYPE = BEARER BEARER_TOKEN = '<arc token>')
  ENABLED = TRUE;

CREATE ICEBERG TABLE cpu
  EXTERNAL_VOLUME = 'arc_volume'
  CATALOG = 'arc_catalog'
  CATALOG_TABLE_NAME = 'cpu'
  AUTO_REFRESH = TRUE;

With AUTO_REFRESH = TRUE, Snowflake follows each new version Arc publishes, with no manual ALTER ICEBERG TABLE … REFRESH. Expect about a minute or two between Arc publishing a version and Snowflake showing it.

To have Snowflake discover every table in Arc's catalog, including ones created later, use a catalog-linked database instead of creating tables one by one:

CREATE DATABASE arc_linked
  LINKED_CATALOG = (CATALOG = 'arc_catalog')
  EXTERNAL_VOLUME = 'arc_volume';
-- tables appear as arc_linked.arc_mydb.cpu

Behaviour to know

  • Tokens: give each engine a token with read permission only, never an admin token. The engine stores it, and some engines record it in their query history.
  • Permissions: a token sees only the namespaces and tables it can read. A table it cannot read answers 404, as if it did not exist. Arc's permissions decide what the catalog lists, not who can read the bucket.
  • Errors: when storage or Arc's permission store cannot be read, the catalog answers 503, never a shorter list. A table whose current version cannot be served also answers 503. The cause is in Arc's log.
  • Listings are cached for 30 seconds. A new table appears within that time; loads are never cached.
  • Clusters: on a shared bucket every node can answer. With node-local storage only the node running the export can; the others answer 503.
  • Not served: edge-sync spoke namespaces (read them by path), credential vending and the OAuth token endpoint.

Through AWS Glue

Since 27.01.1, Arc can also register its tables in AWS Glue, so Athena, EMR, Redshift Spectrum, Snowflake (CATALOG_SOURCE = GLUE), BigQuery (a Glue federated dataset) and engines that federate Glue can read them. This needs an S3 primary on AWS.

[iceberg]
enabled = true

[iceberg.glue]
enabled = true
# region = "us-east-2"          # default: storage.s3_region
# catalog_id = "123456789012"   # default: the credentials' account

Arc keeps one Glue table per published table, in the Glue database <prefix>_<database> (arc_mydb), named after the measurement in lowercase. Each publish updates the table's metadata_location within seconds. Glue only stores where the current version is; Arc keeps writing its own metadata.

Athena

SELECT host, avg(usage) FROM arc_mydb.cpu GROUP BY host;

The Athena and Redshift guide covers both engines step by step, including Redshift Serverless's automatically mounted catalog.

Snowflake (step by step in the Snowflake guide)

CREATE CATALOG INTEGRATION arc_glue
  CATALOG_SOURCE = GLUE
  CATALOG_NAMESPACE = 'arc_mydb'
  TABLE_FORMAT = ICEBERG
  GLUE_AWS_ROLE_ARN = 'arn:aws:iam::123456789012:role/snowflake-glue-readonly'
  GLUE_CATALOG_ID = '123456789012'
  GLUE_REGION = 'us-east-2'
  ENABLED = TRUE;

CREATE ICEBERG TABLE cpu
  EXTERNAL_VOLUME = 'arc_volume'
  CATALOG = 'arc_glue'
  CATALOG_TABLE_NAME = 'cpu'
  AUTO_REFRESH = TRUE;

Databricks

Databricks reads Arc's tables through Unity Catalog's Glue federation: a Glue connection and a foreign catalog over the arc_* databases. It needs iceberg.layout = "colocated" in Arc and a writable storage location on the foreign catalog. The Databricks guide walks through it in the Databricks UI, with the IAM role, the errors you hit without each requirement, and a dashboard.

One schema per measurement

A dataset whose own schema changed over time can carry the same column under two spellings (Birth Year and birth year), or with different types in different files. Arc exports such a measurement as one table. Case-insensitive engines (Databricks, Glue, Athena) can't tell the two spellings apart, and a column whose type differs between files stops the export of that table. Keep each historical schema in its own measurement, or normalise the data before writing it.

What Arc needs and promises

  • Permissions: the credentials Arc uses for S3 also call Glue. They need glue:GetDatabase, GetDatabases, CreateDatabase, GetTable, GetTables, CreateTable, UpdateTable and DeleteTable on the <prefix>_* databases. Lake Formation grants are yours to set. In a cluster, give these to every node that can run the export.
  • Arc only changes what it created: Arc never modifies or deletes a Glue table it did not create, one created for another warehouse, a copy of one of its tables, or one another writer has committed to. It logs an error and leaves it.
  • Dropped tables: when an Arc table or database is dropped, its Glue table is deleted after two consecutive hourly checks, at least 10 minutes apart, both find it gone. That deletes Glue metadata only. Glue databases are never deleted.
  • Keep Glue consumers read-only: unlike Arc's REST catalog, Glue accepts writes. A DROP TABLE … PURGE, a VACUUM or an orphan-file cleanup run through Glue deletes the data files the table's metadata names, and those are Arc's own files. Give every Glue consumer read-only S3 access to Arc's bucket, and leave Glue's table optimizers off.
  • One prefix per deployment: two Arc deployments sharing a Glue catalog and region need different iceberg.namespace_prefix values.

Other engines

Any engine with an Iceberg connector can read the tables by path too. See Limitations below.

Configuration reference

Key (arc.toml)Env varDefaultMeaning
iceberg.enabledARC_ICEBERG_ENABLEDfalseEnable the export reconciler.
iceberg.reconcile_intervalARC_ICEBERG_RECONCILE_INTERVAL300Seconds between reconcile passes.
iceberg.ingest_export_intervalARC_ICEBERG_INGEST_EXPORT_INTERVAL60Since 27.01.1: the ingest trigger. The least time, in seconds, between two exports of one table that ingest flushes cause, so a flushed file is exported after at most this long plus the export itself (with many tables written at once, they can queue). 0 turns the trigger off and leaves the timed passes only; otherwise at least 5. Standalone nodes only: a cluster node exports on the timed pass.
iceberg.export_lag_table_seriesARC_ICEBERG_EXPORT_LAG_TABLE_SERIES0Since 27.01.1: how many tables get their own export lag series on /metrics (0–1000; 0 = none). See Monitoring the export.
iceberg.retain_snapshotsARC_ICEBERG_RETAIN_SNAPSHOTS10Iceberg snapshots (and metadata versions) kept per table; older are expired to bound metadata growth. An upper bound, not a guarantee: a pass that removes a file expires all older snapshots regardless of this value, because they reference deleted files (see Time travel).
iceberg.namespace_prefixARC_ICEBERG_NAMESPACE_PREFIXarcNamespace prefix; tables land in <prefix>_<database>.
iceberg.warehouseARC_ICEBERG_WAREHOUSEstorage rootRoot URI where table metadata is written (file:// or a plain path; s3:// with an S3 backend). Defaults alongside the data. On local storage, a warehouse outside the storage root works but Arc cannot publish version-hint.text for directory-based readers, and backups copy the warehouse separately. With an S3 backend it must be inside the storage root (s3://<s3_bucket>/<s3_prefix>/…); Arc refuses to start otherwise. Since 27.01.1 the warehouse's directories inside the storage root are not databases; see The warehouse is not a database.
iceberg.layoutARC_ICEBERG_LAYOUTwarehouseWhere new tables are created (27.01.1+): warehouse puts metadata under <warehouse>/<prefix>_<database>.db/<measurement>; colocated puts it in <database>/<measurement>/metadata/, beside the data. See Table layout.
iceberg.rest_catalog_enabledARC_ICEBERG_REST_CATALOG_ENABLEDfalseServe a read-only Iceberg REST catalog at /iceberg (27.01.1+). Needs iceberg.enabled. See Through Arc's REST catalog.
iceberg.glue.enabledARC_ICEBERG_GLUE_ENABLEDfalseRegister the published tables in AWS Glue (27.01.1+). Needs iceberg.enabled and an S3 primary on AWS. See Through AWS Glue.
iceberg.glue.regionARC_ICEBERG_GLUE_REGIONstorage.s3_regionRegion of the Glue catalog.
iceberg.glue.catalog_idARC_ICEBERG_GLUE_CATALOG_IDthe credentials' account12-digit account ID of the Glue catalog.
iceberg.glue.sync_intervalARC_ICEBERG_GLUE_SYNC_INTERVAL60Seconds between retries of failed Glue updates; each publish is pushed at once.
iceberg.catalog_db_pathARC_ICEBERG_CATALOG_DB_PATHshared auth DBSQLite catalog location.
iceberg.cold_rescan_intervalARC_ICEBERG_COLD_RESCAN_INTERVAL3600With an S3 cold tier: seconds a measurement's cached cold-tier listing is trusted. Arc re-lists right away after its own cold-tier changes (migrations, cold retention, DELETE, database delete); this only bounds changes made outside Arc.
iceberg.orphan_sweep_enabledARC_ICEBERG_ORPHAN_SWEEP_ENABLEDtrueDelete manifest files that no retained metadata version references any more. This is the one thing the exporter deletes that nothing regenerates, so it has an off switch; set false and the manifests of expired snapshots are kept forever and copied into every backup. Arc logs a warning at startup when it is off.

Table layout

Since Arc 27.01.1, iceberg.layout decides where a new table's metadata goes.

  • warehouse (the default). Metadata in <warehouse>/<prefix>_<database>.db/<measurement>/metadata/, apart from the data. Manifests point at Arc's Parquet files by absolute path.
  • colocated. The table's location is the measurement's own directory, so its metadata goes in <database>/<measurement>/metadata/ and every data file it references is inside the table folder.

Use colocated for readers that reach a table only through its folder and cannot follow paths outside it. A Microsoft Fabric OneLake shortcut is one: with the default layout it converts the metadata, then fails on the first data file. See Microsoft Fabric and Power BI.

[iceberg]
enabled = true
layout  = "colocated"
  • colocated needs local or S3 storage and the warehouse at the storage root (the default). Arc refuses to start with iceberg.warehouse pointing elsewhere.
  • The layout applies to new tables only. An existing table keeps its location, so switching the key, either way, moves nothing. To move a table: stop Arc on every node, delete the table's row from the iceberg_tables table of each node's catalog, delete its metadata directory (<prefix>_<database>.db/<measurement>/ when moving to colocated, <database>/<measurement>/metadata/ when moving back), and start Arc. The next pass recreates the table and registers every file again, reading each file's footer once.
  • Same layout on every node that exports to the same storage, or two nodes could each create the table in a different place.
  • A measurement's metadata/ directory is not data: queries, pruning and the schema registry ignore it, and a database DELETE removes it through the Iceberg cleanup.

Never run orphan-file cleanup on a colocated table

A colocated table's location holds Arc's data, including files the export has not registered yet. remove_orphan_files (Spark, Trino) deletes every file under the location that no snapshot references, which would delete Arc data.

Caveats:

  • Cold tier. Files that tiering moves to a cold tier leave the table folder. The table still lists them, so catalog readers see them, but folder-scoped readers such as a OneLake shortcut cannot read them. Arc warns at startup.
  • Cluster with node-local storage. The metadata exists only on the exporting node. Arc warns at startup.
  • Object storage. A measurement whose data is all gone but whose table metadata remains is still listed.

The warehouse is not a database

Since Arc 27.01.1, with Iceberg export on, Arc no longer treats the warehouse's directories inside the storage root as databases, on local storage and on S3 alike. Earlier versions listed them with the databases, accepted writes into a subdirectory warehouse, and let a database DELETE remove the warehouse's metadata. What is hidden depends on where iceberg.warehouse points:

  • The storage root (the default). The namespace directories (<prefix>_<database>.db, for example arc_telemetry.db) sit next to the databases.
  • A subdirectory of the storage root, for example <root>/lv_wh. The directory lv_wh sits next to the databases and holds the namespace directories.
  • Deeper inside the storage root, for example <root>/a/b. Database a may be a real one and stays listed; only its measurement b is the warehouse.

For a namespace directory and for a subdirectory warehouse:

  • GET /api/v1/databases, SHOW DATABASES and GET /api/v1/measurements leave them out, and SHOW TABLES lists no tables in them.
  • GET /api/v1/databases/{name} and its /measurements answer 404.
  • DELETE /api/v1/databases/{name} answers 403.
  • A tiering policy PUT for them answers 404.

A subdirectory warehouse's name is also refused as a database name:

  • POST /api/v1/databases answers 400 Database name 'lv_wh' is reserved.
  • A write to a database of that name answers 400 database name "lv_wh" is reserved for the Iceberg warehouse: line protocol, MessagePack, TLE and every /api/v1/import/* format. Creating or updating a continuous query with that database answers the same 400, and a stored one fails its runs. An MQTT subscription or topic_mapping rule that targets it is refused, and a message that maps to it is dropped and counted as failed.
  • The match is exact: lv_wh-other is an ordinary database. On a volume that does not distinguish case, another spelling such as LV_WH is refused only once the warehouse directory exists.

For a warehouse nested deeper, at <root>/a/b:

  • Measurement b of database a is left out of the listings.
  • DELETE of database a answers 403, because it would delete the warehouse with it. Move the warehouse first.
  • Writes to measurement b of database a are not refused. They land inside the warehouse directory, are hidden from the listings and are not exported. Do not write there; a warning at startup names that measurement.

The export applies the same rule, so it does not export a subdirectory warehouse as if it were a database.

Configure Iceberg the same way on every node

In a cluster, the rule holds only on nodes with Iceberg export on. A node with iceberg.enabled = false lists the warehouse as a database and accepts writes to it.

Schema mapping

Arc's columns map to Iceberg types as follows:

Arc / ArrowIceberg
time (Timestamp µs, UTC)timestamptz
int64long
int32int
float64double
float32float
stringstring
boolboolean
binarybinary
decimal128decimal(P,S)

Arc's own ingest writes int64, float64, string, bool, binary (MessagePack bin values, since v27.01.1) and timestamps; the 32-bit and decimal types are there for Parquet that arrives through the bulk import API.

Tables are partitioned by day(time).

Schema changes

Adding columns is automatic. If a measurement gains a column over time, the Iceberg table's schema is evolved to include it, and older files (written before the column existed) stay readable — the new column simply reads as NULL for those rows.

Changing a column's type is not supported. If a column's type changes (say value was written as an integer and later arrives as a float), Iceberg cannot represent both in one column. Arc refuses to reconcile that measurement and logs an error naming the column and both types:

column "value" type mismatch: Iceberg table has long, new Parquet files have double
(the measurement's column type changed; Iceberg cannot represent both in one column)

The Iceberg table is left untouched and stays readable at its last good state, and your other measurements keep exporting normally — one bad measurement never blocks the rest. Arc retries on every reconcile pass, so once the underlying type conflict is resolved the measurement recovers on its own without a restart.

The conflict lives in the data, not in Iceberg, so fix it at the source: keep a measurement's column type stable, or write the new type under a different column or measurement name.

Time travel

Arc does not support Iceberg time travel across compaction, retention or a partial DELETE. Reading the current snapshot is fully supported; reading an older one is only sound while nothing has removed a file since.

The reason is a genuine conflict rather than an omission. Iceberg copy-on-write keeps a superseded data file alive until the snapshots that reference it expire. Arc cannot: it reads a partition with a glob over every Parquet file in it, so a superseded file left in place would be counted twice by every ordinary query. Arc therefore deletes the file, and the snapshots naming it stop being readable.

So that a reader gets a meaningful error rather than one that looks like data loss, a reconcile pass that removes any file now expires every older snapshot. Time travel to one returns:

Invalid Configuration Error: Could not find snapshot with id 873009943563408273

which is the ordinary result of any Iceberg retention policy, instead of:

IO Error: Cannot open file ".../cpu_20261008_155058_567682000.parquet": No such file or directory

which is indistinguishable from the object store having lost an object. No readable history is lost by this: a removed file is referenced by every snapshot from the one that added it onward, so each of those had already stopped working.

What this means in practice: compaction runs hourly by default, so on an actively-ingesting measurement expect history to be one snapshot deep most of the time. A measurement that only ever gains files keeps retain_snapshots of genuinely readable history, because nothing has been removed.

Two edges worth knowing:

  • The expiry applies to version-hint.text, which is how directory-based readers resolve the table. Arc also keeps retain_snapshots + 1 older v<N>.metadata.json copies for readers that pin a version, and those still list the pre-expiry snapshots — a consumer reading one directly still gets the IO Error until the copy is pruned, roughly retain_snapshots passes later.
  • On a deployment upgrading into this behaviour, a table's stale history is cleaned by its next pass that removes something. A table whose file set has gone quiet is skipped by the reconciler, so it keeps the old snapshot list until it changes again.

A pass that expires history this way logs at warn with the snapshot counts before and after.

If you need reproducible reads of historical state, snapshot the query results rather than the table, or use Arc's backup and restore.

Cold-tier tiering

With an S3 cold tier (tiered_storage.cold.backend = "s3"), a file that tiering moves to cold stays in the Iceberg table under its s3:// URI, with the same rows and statistics. Readers see the same data before, during and after a migration.

  • Mixed-location tables: with a local primary, a table holds file:// paths for hot data and s3:// paths for cold data. A reader needs access to both: run it on the Arc host, with S3 credentials for the cold bucket. For a table every host can read, use an S3 primary too (storage.backend = "s3").
  • Glacier: Arc writes cold objects to S3 Standard. If a bucket lifecycle rule moves them to Glacier or Deep Archive, the table still lists them, and external engines cannot read them until they are restored. Arc's export does not restore objects or skip archived ones.
  • Which copy is exported: the one Arc's queries read. While a file is on both tiers, during a migration or for a hot-only database, the table keeps the hot copy until Arc's tier record says the file is cold.
  • No extra reads: a migrated file's entry is copied from the hot one. The cold object is read only for cold data the table never held hot, and then with the cold tier's own credentials.
  • Brief read error, never wrong rows: in the one reconcile pass between a migration deleting the hot copy and the table moving to the cold URI, a reader that already resolved the old path can get a not-found error. Compaction and retention have the same window.
  • Licensing: tiering requires an Enterprise license. Without it Arc disables tiering, and with a cold tier still configured the export does not start; tables keep their last snapshot until the license is restored. The same applies if the configured cold tier is unavailable at startup.

At shutdown

From v27.01.1, Arc tries to add the files it writes while it shuts down to their tables before it exits. On SIGTERM or SIGINT, ingest's final flush writes what is still buffered. Once the buffer and the WAL have closed, the export serves what is queued, one table at a time: the final flush's files, files waiting for their next ingest export, and requests the export had taken but not served. With Glue on, Glue then syncs what was published. Before v27.01.1, those files stayed out of their tables until Arc started again, and for good on a node that did not come back.

The drain uses what is left of server.shutdown_timeout (default 30 seconds), less a tenth for the closes after it and, with Glue on, a twentieth for Glue. Compaction's shutdown wait runs first: when a compaction batch overruns and is killed, the drain gets only a tenth of the budget, or a twentieth with Glue on.

What the drain does not reach waits for the next start, which reconciles it:

  • With many tables and little time left, the drain stops at its deadline. Raise server.shutdown_timeout if every table must be current at exit. On a cluster with a shared bucket, 45 seconds or more gives the drain room.
  • With iceberg.ingest_export_interval = 0, flushes report nothing to the export, so the final flush's files wait for the next start, as before.
  • If the export's loop does not stop in time (a pass that ignores cancellation), the drain is skipped.

Monitoring the export

Since Arc 27.01.1, /metrics reports how far the export is behind ingest. /metrics needs a valid token while auth is on, unless auth.metrics_public = true; see Monitoring.

Node-wide

Always on:

MetricTypeMeaning
arc_iceberg_export_lag_secondshistogramPer ingest file published in a table: the time from when the file was written until a table version containing it was published. Files written before the process started are left out.
arc_iceberg_export_pending_secondsgaugeHow long the oldest flushed file that asked for an export has waited for one that covers it; 0 when none is waiting. Set by the ingest trigger only, so it reads 0 on every cluster node and with ingest_export_interval = 0; use the histogram, or the per-table series below, there.
arc_iceberg_export_backlog_files_totalcounterIngest files published that were written before the process started: existing data exported after a start, not lag.

Per table

Opt-in: set iceberg.export_lag_table_series to a number N. Two terms first:

  • The ingest trigger is the export an ingest flush asks for, on a standalone node with ingest_export_interval above 0. A cluster node has none; it exports on its timed pass.
  • The floor is twice ingest_export_interval, or twice reconcile_interval where the ingest trigger is off. A table counts as waiting only once its wait passes the floor, so a healthy table between two exports is not listed.

The per-table series are labelled database and measurement, at most N of each, so up to 2N labelled series:

MetricTypeWhich tablesMeaning
arc_iceberg_export_table_pending_secondsgaugethe N waiting longest, past the floorHow long the table's oldest file waiting for an export has waited.
arc_iceberg_export_table_last_lag_secondsgaugethe N with the longest recent lagThe longest time from when an ingest file was written until its table version was published, among the files the table's last publish covered.

And one unlabelled count, arc_iceberg_export_tables_pending: how many tables have waited past the floor, so a table dropping out of the top N can be told from one catching up.

# The table that has waited longest for an export, in seconds
topk(1, arc_iceberg_export_table_pending_seconds)

# Tables waiting past the floor, on whichever node exports
max(arc_iceberg_export_tables_pending) > 0

How the per-table values are counted:

  • Where a wait starts. The earlier of two times: when a flushed file asked for an export (the ingest trigger), and when a file the table has committed but not yet published was written (every mode; files written after the process started).
  • What is not shown. On a cluster, or with ingest_export_interval = 0, a table whose commits keep failing. After a restart, a table whose publishes keep failing, until it commits again.
  • Last lag. Only files written after the process started count, and only publishes within the last hour, or within three reconcile intervals if that is longer. A table missing from this series is not known to be healthy, only not recently slow.
  • Cluster. A node that is not the exporter reports no labelled series, checked at each scrape, so during a failover two nodes do not report the same table. Its arc_iceberg_export_tables_pending reads 0, which says nothing; take max() across nodes.

The per-table series name your tables

These series carry database and measurement names, which no other Arc metric does. Any valid token can read /metrics, including a token scoped to one database (Enterprise RBAC), which then sees the names of every exported table. With auth.metrics_public = true, anyone who can reach Arc sees them. Neither /metrics with Accept: application/json nor /api/v1/metrics carries them.

Limitations (v1)

  • Local or S3 storage. Iceberg export runs with storage.backend = "local" or "s3". Arc refuses to start with Iceberg enabled on:
    • an Azure or GCS primary;
    • an S3 backend pointed at Google Cloud Storage's S3-compatible endpoint (storage.googleapis.com);
    • an S3 backend whose iceberg.warehouse is outside the storage root.
  • Cold tier on S3 only. Iceberg export runs alongside cold-tier tiering when the cold tier is S3 (see Cold-tier tiering). Arc refuses to start with Iceberg enabled and an Azure or GCS cold tier, or an S3 cold tier on Google Cloud Storage's interop endpoint, because files migrated there would leave the table.
  • Eventual consistency. The Iceberg view reflects the last export. It lags live ingest by up to reconcile_interval, or, on a standalone node with the ingest trigger on (since 27.01.1), by about ingest_export_interval. See Monitoring the export. This is expected for a lakehouse export.
  • On-disk portability. Iceberg metadata references files by absolute path. Tables read fine on the same host; moving a local table to a different path/host requires re-pointing (object-store warehouses avoid this).
  • Catalog discovery. Since 27.01.1 Arc serves a read-only Iceberg REST catalog (iceberg.rest_catalog_enabled). See Through Arc's REST catalog. Arc also registers its tables in AWS Glue (iceberg.glue.enabled); see Through AWS Glue.
  • Metadata is bounded, not constant. Each reconcile pass that removes a file writes new manifests and leaves the superseded ones behind, so the metadata directory grows with the removal history rather than with the data. Two mechanisms bound it, both automatic: the orphan sweep (above) deletes manifests no retained metadata version references, and a pass that finds a table at 12 or more data manifests merges them into one. Expect on the order of retain_snapshots commits' worth of .avro in a steady state. A table whose file set has stopped changing is skipped by the reconciler, so it keeps whatever manifest count it last had until something writes to it again.
  • Clustered deployments. Exactly one node must run the reconciler.
    • Under the compactor failover lease this is guaranteed.
    • In a static-role cluster with local storage, enable Iceberg export where a single compaction-capable node runs.
    • With shared storage (cluster.shared_storage_mode), Iceberg export requires cluster.failover_enabled = true, and only the node holding the compactor lease exports. No node exports before the first lease is assigned.
    • The version published in the bucket, not a node's own catalog, is the table's current version. A node that takes over, or comes back after a failover, continues from it.
    • If two nodes ever commit the same version, the second is refused, logged as another writer published this table version first, and it adopts the published version on its next pass.
    • A node whose SQLite catalog was lost also continues the existing table rather than starting a second one in the same directory.
    • The SQLite catalog is local to the node that exports, so catalog-based readers (PyIceberg's SqlCatalog) work only there. From any other host, use Arc's REST catalog (any node of a shared-bucket cluster answers), or read the table from its s3:// directory (DuckDB, PyIceberg StaticTable, Spark).

Backup & restore

Arc's backup includes the Iceberg warehouse metadata (metadata.json, manifest .avro, version-hint.text) alongside the Parquet data, so a restored deployment keeps its Iceberg tables intact. On S3 the warehouse is always inside the storage root, so the metadata travels with the data. A warehouse outside the storage root is backed up too, under iceberg/ in the backup, and restored into the node's configured iceberg.warehouse. Both the storage root and the warehouse are recorded by absolute path in the Iceberg metadata, so restore to the same paths; see Backup & restore for the details and the cluster caveat.

FAQ

Does this slow down ingestion? No. The export is a background reconciler; the write path is unchanged.

Does it duplicate my data? No. It registers your existing Parquet files by reference. Only small Iceberg metadata is written.

Can I still use Arc's SQL API? Yes. Iceberg export is additive — Arc's native query API is unaffected. The same Parquet files serve both.

What happens to compacted/retained files? The reconciler reflects them. Retention deletes show up as file removals on the next pass. A compacted file is registered only once its compaction has committed, that is, once its source files are gone; until then the source files stay in the table, so a pass that runs in the middle of a compaction never registers both the sources and their replacement. If a compaction deletes some of its sources and fails on the rest, the compacted file stays out of the table and the surviving sources stay in it until the next compaction cycle's recovery finishes the job: a bounded under-count, never a double count.

What about the row-level delete API? A delete that matches every row in a file removes the file, and the next pass drops it from the table. A delete that matches only some rows rewrites the file in place at the same path; the reconciler notices the changed file size and re-registers the file in a single commit, so the table's record count and file size follow the rewrite within one reconcile interval instead of keeping the values from the original registration. That commit merges the table's manifests into one (Iceberg's commit.manifest-merge.enabled, enabled for that commit only), which is what lets a path that already left the table come back.

On this page