Connect to SeaweedFS
SeaweedFS is a distributed storage system that exposes both an S3-compatible object API and an Apache Iceberg REST Catalog from the same weed process. Parquet data and Iceberg metadata are served by one executable, authenticated by one S3 credential pair.
Connect a VeloDB Cloud warehouse to SeaweedFS through its Iceberg REST and S3-compatible endpoints. The upstream TestDorisIcebergCatalog sample uses Apache Doris 2.1.0; that upstream test is compatibility context, not a VeloDB Cloud validation or performance measurement.
Prerequisites
- Connect to a VeloDB Cloud warehouse with a SQL user allowed to create catalogs and use the required databases and tables.
- For SaaS and BYOC warehouses, configure network access from the warehouse to both the external catalog endpoint and the storage endpoints returned in table metadata. An endpoint reachable from your laptop may still be unreachable from the warehouse. Contact VeloDB Cloud support when the integration needs private networking or managed runtime configuration.
- Prepare external service permissions for the metadata and data operations you plan to run. Credential vending still requires the external service to grant storage access.
- Replace sample hosts, account IDs, bucket names, and credentials. The HTTP endpoints and development credentials in local service examples are for an isolated test environment. Use HTTPS and restricted credentials for remote access.
Why SeaweedFS for an Iceberg lakehouse
A typical lakehouse stack today stitches together three layers:
- Object storage (S3 or compatible)
- A standalone Iceberg catalog (Hive Metastore, Glue, Polaris, Lakekeeper, Nessie, ...)
- A query engine (VeloDB Cloud, Spark, Trino, ...)
SeaweedFS collapses the first two into one process. The same weed executable is both:
- the S3-compatible object store that holds the parquet files, and
- the Iceberg REST Catalog that holds the table metadata.
So VeloDB Cloud talks to one system instead of two. The practical implications:
- Fewer moving parts. No Hive Metastore, no Glue, no Postgres backing a separate catalog, no STS role to provision.
- Simpler deployment. One executable, one IAM config, one S3 credential pair shared by VeloDB Cloud's Iceberg REST client and its S3 reader.
- Local or on-prem friendly. Nothing in the path requires a cloud-native service. The same setup runs on a laptop, a single VM, or a Kubernetes cluster.
- Shared metadata service. Catalog state lives in the same SeaweedFS filer that serves the data. Actual metadata latency depends on the deployment and workload.
- S3-native on disk. Tables are stored as standard Iceberg directories in S3 buckets. Any S3 client (rclone,
aws s3, Spark, Trino, Dremio, RisingWave) can read or replicate them alongside the warehouse.
Architecturally:
Doris
|
v
Iceberg tables
|
v
SeaweedFS (S3 storage + REST catalog)
For smaller teams or internal platforms, this is a clean way to build a lakehouse without depending on a separate metastore service.
1. Start SeaweedFS
Build or install weed from github.com/seaweedfs/seaweedfs.
Create an IAM config that grants an access key full S3 access. The same key is also used as the OAuth2 client for the Iceberg REST endpoint:
{
"identities": [
{
"name": "doris",
"credentials": [
{
"accessKey": "AKIAIOSFODNN7EXAMPLE",
"secretKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
}
],
"actions": ["Admin"]
}
]
}
Start a single-process cluster with the Iceberg REST endpoint and a pre-created table bucket:
weed mini \
-ip $(hostname -I | awk '{print $1}') \
-dir /var/lib/seaweedfs \
-s3.config /etc/seaweedfs/iam_config.json \
-tableBucket iceberg-tables
weed mini runs master, volume, filer, S3, and the Iceberg REST catalog in one process. Default ports:
| Component | Port | Override flag |
|---|---|---|
| Master HTTP | 9333 | -master.port |
| Filer HTTP | 8888 | -filer.port |
| S3 | 8333 | -s3.port |
| Iceberg REST | 8181 | -s3.port.iceberg |
-tableBucket iceberg-tables creates the S3 Tables bucket on startup, which is the Iceberg-aware bucket type VeloDB Cloud will write into.
To verify the catalog is reachable:
curl -s http://SEAWEED_HOST:8181/v1/config | jq .
2. Register the Iceberg catalog in VeloDB Cloud
CREATE CATALOG seaweedfs PROPERTIES (
"type" = "iceberg",
"iceberg.catalog.type" = "rest",
"iceberg.rest.uri" = "https://<iceberg-rest-host>",
"iceberg.rest.security.type" = "oauth2",
"warehouse" = "s3://iceberg-tables",
"iceberg.rest.oauth2.credential" = "<access-key-id>:<secret-access-key>",
"s3.endpoint" = "https://<s3-host>",
"s3.access_key" = "<access-key-id>",
"s3.secret_key" = "<secret-access-key>",
"s3.region" = "us-west-2",
"use_path_style" = "true"
);
Notes:
iceberg.rest.oauth2.credential = "<access-key-id>:<secret-access-key>"is forwarded by VeloDB Cloud's Iceberg REST client as OAuth2 client credentials. SeaweedFS validates them against the same IAM config that secures the S3 endpoint.- The
s3.*properties are used by VeloDB Cloud's own parquet reader and writer. They point at the sameweedprocess — same host, same key pair. use_path_style = "true"is required because SeaweedFS serves S3 in path-style by default.- The upstream integration test uses legacy aliases. The statement above uses the explicit Core 26.1.3 REST property names; see
createDorisIcebergCatalogfor the upstream example.
If you create namespaces or tables outside VeloDB Cloud (for example with PyIceberg) before the catalog is registered, refresh the metadata cache:
REFRESH CATALOG seaweedfs;
3. Use the catalog
SWITCH seaweedfs;
CREATE DATABASE IF NOT EXISTS demo;
USE seaweedfs.demo;
CREATE TABLE iceberg_smoke (
id BIGINT,
label STRING
);
INSERT INTO iceberg_smoke VALUES (1, 'one'), (2, 'two'), (3, 'three');
SELECT id, label FROM iceberg_smoke ORDER BY id;
Expected output:
+----+-------+
| id | label |
+----+-------+
| 1 | one |
| 2 | two |
| 3 | three |
+----+-------+
The SQL above creates and writes a table through the warehouse. The linked upstream test uses a separate PyIceberg writer; its results do not establish VeloDB Cloud runtime behavior.
Production notes
- For a production cluster, replace
weed miniwithweed master,weed volume,weed filer, andweed s3 -iceberg.port=8181(or use the SeaweedFS Helm chart). Configure the warehouse with externally reachable catalog and storage endpoints. - The OAuth2 credential is the S3 access key. To rotate VeloDB Cloud's catalog access, rotate the IAM identity that holds it, the same way you rotate any S3 user.
- Iceberg table maintenance (compaction, snapshot expiration, orphan removal, manifest rewriting) is built into SeaweedFS and runs against the same bucket. See the SeaweedFS Iceberg Catalog wiki for details.
See also
Common errors
| Symptom | Check and resolution |
|---|---|
| Connection timeout or hostname resolution failure | Check the catalog URI and connectivity from the warehouse, then check the storage endpoints in table metadata. Ask VeloDB Cloud support to investigate managed network access when needed. |
| Unauthorized or forbidden response | Check the catalog authentication method, token or client credentials, expiry, and permissions on the external catalog and namespace. |
| Catalog metadata loads but a table scan fails | Check storage credentials or credential vending, object permissions, and reachability of the data-file endpoint. Metadata access alone does not grant data access. |
Clean up test resources
Queries and writes consume warehouse compute, and the sample can create billable external storage or services. See Billing Overview. Remove only the test tables and external services you created when you finish. Check the external catalog's deletion behavior before dropping a table or namespace because it can also delete data files.