Connect to Nessie
Nessie provides an Iceberg REST catalog with branches and tags. Configure the external Nessie service and its storage access, then connect your VeloDB Cloud warehouse to the REST endpoint for the selected branch. A Nessie warehouse is an external storage configuration, separate from your VeloDB Cloud warehouse.
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.
1. Prepare the AWS environment
Before we begin, we need to prepare S3 storage buckets and corresponding IAM roles on AWS, which forms the foundation for Nessie to manage data and VeloDB Cloud to access data.
1.1 Create an S3 bucket
First, we create an S3 Bucket named nessie-doris-demo to store Iceberg table data that will be created later.
# Create S3 storage bucket
aws s3 mb s3://nessie-doris-demo --region us-east-1
# Verify bucket creation success
aws s3 ls | grep nessie-doris-demo
1.2 Create an IAM role for storage access (optional)
If you plan to use Credential Vending mode, you need to create an IAM role for Nessie to use through the STS AssumeRole mechanism. This design follows the security best practices of least privilege principle and separation of duties.
-
Create trust policy file
Create
nessie-trust-policy.jsonfile:cat > nessie-trust-policy.json << 'EOF'{"Version": "2012-10-17","Statement": [{"Effect": "Allow","Principal": {"AWS": "arn:aws:iam::YOUR_ACCOUNT_ID:user/YOUR_USER"},"Action": "sts:AssumeRole"}]}EOFNote:
Please replace YOUR_ACCOUNT_ID with your actual AWS Account ID, which can be obtained via
aws sts get-caller-identity --query Account --output text. Replace YOUR_USER with the actual IAM username.
-
Create IAM Role
aws iam create-role \--role-name nessie-sts-role \--assume-role-policy-document file://nessie-trust-policy.json \--description "IAM Role for Nessie to access S3 storage" -
Attach S3 access permission policy
Create
nessie-s3-policy.jsonfile:cat > nessie-s3-policy.json << 'EOF'{"Version": "2012-10-17","Statement": [{"Effect": "Allow","Action": ["s3:ListBucket","s3:GetBucketLocation","s3:ListBucketMultipartUploads","s3:ListMultipartUploadParts","s3:AbortMultipartUpload","s3:GetObject","s3:PutObject","s3:DeleteObject"],"Resource": ["arn:aws:s3:::nessie-doris-demo","arn:aws:s3:::nessie-doris-demo/*"]}]}EOFAttach the policy to the role:
aws iam put-role-policy \--role-name nessie-sts-role \--policy-name nessie-s3-access \--policy-document file://nessie-s3-policy.json -
Grant AssumeRole permission to the user
cat > user-assume-policy.json << 'EOF'{"Version": "2012-10-17","Statement": [{"Effect": "Allow","Action": "sts:AssumeRole","Resource": "arn:aws:iam::YOUR_ACCOUNT_ID:role/nessie-sts-role"}]}EOFaws iam put-user-policy \--user-name YOUR_USER \--policy-name allow-assume-nessie-role \--policy-document file://user-assume-policy.json -
Verify creation results
aws iam get-role --role-name nessie-sts-roleaws iam list-role-policies --role-name nessie-sts-role# Verify AssumeRole is availableaws sts assume-role \--role-arn arn:aws:iam::YOUR_ACCOUNT_ID:role/nessie-sts-role \--role-session-name nessie-test
2. Deploy Nessie and configure its warehouse
After environment preparation is complete, we begin deploying the Nessie service and configuring the Warehouse.
2.1 Deploy Nessie with credential vending
This is the most recommended deployment approach, enhancing security through temporary credentials.
Create a .env file to store AWS credentials:
AWS_ACCESS_KEY_ID=YOUR_ACCESS_KEY
AWS_SECRET_ACCESS_KEY=YOUR_SECRET_KEY
Create a docker-compose.yml file:
version: "3.8"
services:
postgres:
image: postgres:16
environment:
POSTGRES_DB: nessie
POSTGRES_USER: nessie
POSTGRES_PASSWORD: nessie
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
nessie:
image: ghcr.io/projectnessie/nessie:0.106.0-java
depends_on:
- postgres
ports:
- "19120:19120"
environment:
JAVA_OPTS_APPEND: >-
-Dnessie.version.store.type=JDBC2
-Dnessie.version.store.persist.jdbc.datasource=postgresql
-Dquarkus.datasource.postgresql.jdbc.url=jdbc:postgresql://postgres:5432/nessie
-Dquarkus.datasource.postgresql.username=nessie
-Dquarkus.datasource.postgresql.password=nessie
-Dnessie.catalog.default-warehouse=nessie-warehouse
-Dnessie.catalog.warehouses.nessie-warehouse.location=s3://nessie-doris-demo/warehouse
-Dnessie.catalog.service.s3.default-options.region=us-east-1
-Dnessie.catalog.service.s3.default-options.auth-type=APPLICATION_GLOBAL
-Dnessie.catalog.service.s3.default-options.server-iam.enabled=true
-Dnessie.catalog.service.s3.default-options.server-iam.assume-role=arn:aws:iam::YOUR_ACCOUNT_ID:role/nessie-sts-role
-Dnessie.catalog.service.s3.default-options.server-iam.role-session-name=nessie-doris
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
volumes:
pgdata:
Key Configuration Parameters for Credential Vending:
| Parameter | Description |
|---|---|
nessie.version.store.type | Version store type, using JDBC2 for PostgreSQL backend. |
nessie.catalog.default-warehouse | The default warehouse name. |
nessie.catalog.warehouses.<name>.location | The S3 location for storing Iceberg table data. |
server-iam.enabled | Set to true to enable Credential Vending. |
server-iam.assume-role | The IAM Role ARN that Nessie will assume to access S3. |
server-iam.role-session-name | Session name for the assumed role. |
auth-type | Set to APPLICATION_GLOBAL for using application-level credentials. |
Start Nessie:
docker compose up -d
After starting, you can access the Nessie API at http://YOUR_HOST_IP:19120.
2.2 Deploy Nessie with static credentials
If you don't need Credential Vending, you can use static credentials mode for quick testing:
Create a .env file to store AWS credentials:
AWS_ACCESS_KEY_ID=YOUR_ACCESS_KEY
AWS_SECRET_ACCESS_KEY=YOUR_SECRET_KEY
Create a docker-compose.yml file:
version: "3.8"
services:
postgres:
image: postgres:16
environment:
POSTGRES_DB: nessie
POSTGRES_USER: nessie
POSTGRES_PASSWORD: nessie
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
nessie:
image: ghcr.io/projectnessie/nessie:0.106.0-java
depends_on:
- postgres
ports:
- "19120:19120"
environment:
JAVA_OPTS_APPEND: >-
-Dnessie.version.store.type=JDBC2
-Dnessie.version.store.persist.jdbc.datasource=postgresql
-Dquarkus.datasource.postgresql.jdbc.url=jdbc:postgresql://postgres:5432/nessie
-Dquarkus.datasource.postgresql.username=nessie
-Dquarkus.datasource.postgresql.password=nessie
-Dnessie.catalog.default-warehouse=nessie-warehouse
-Dnessie.catalog.warehouses.nessie-warehouse.location=s3://nessie-doris-demo/warehouse
-Dnessie.catalog.service.s3.default-options.region=us-east-1
-Dnessie.catalog.service.s3.default-options.access-key=urn:nessie-secret:quarkus:my-secrets-default
-Dmy-secrets-default.name=${AWS_ACCESS_KEY_ID}
-Dmy-secrets-default.secret=${AWS_SECRET_ACCESS_KEY}
env_file:
- .env
volumes:
pgdata:
Key Configuration Parameters:
| Parameter | Description |
|---|---|
nessie.version.store.type | Version store type, using JDBC2 for PostgreSQL backend. |
nessie.catalog.default-warehouse | The default warehouse name. |
nessie.catalog.warehouses.<name>.location | The S3 location for storing Iceberg table data. |
nessie.catalog.service.s3.default-options.region | AWS region for S3 bucket. |
3. Connect the warehouse to Nessie
Now, we will create an Iceberg Catalog in VeloDB Cloud that connects to the Nessie service.
Method 1: Use vended storage credentials
This is the most recommended approach. When needing to read/write data files on S3, VeloDB Cloud requests a temporary, minimally-privileged S3 access credential from Nessie.
CREATE CATALOG nessie_vc PROPERTIES (
'type' = 'iceberg',
'iceberg.catalog.type' = 'rest',
'iceberg.rest.uri' = 'http://YOUR_NESSIE_HOST:19120/iceberg/main',
'warehouse' = 'nessie-warehouse',
's3.endpoint' = 'https://s3.us-east-1.amazonaws.com',
's3.region' = 'us-east-1',
-- Enable credential vending
'iceberg.rest.vended-credentials-enabled' = 'true'
);
Note:
The Nessie REST Catalog URI format is
http://HOST:PORT/iceberg/{branch}, wheremainis the default branch name.
Method 2: Use static storage credentials
In this approach, VeloDB Cloud directly uses static AK/SK hardcoded in the configuration to access object storage. This method is simple to configure and suitable for quick testing, but has lower security.
CREATE CATALOG nessie_static PROPERTIES (
'type' = 'iceberg',
'iceberg.catalog.type' = 'rest',
'iceberg.rest.uri' = 'http://YOUR_NESSIE_HOST:19120/iceberg/main',
'warehouse' = 'nessie-warehouse',
-- Directly provide S3 access keys
's3.access_key' = 'YOUR_ACCESS_KEY',
's3.secret_key' = 'YOUR_SECRET_KEY',
's3.endpoint' = 'https://s3.us-east-1.amazonaws.com',
's3.region' = 'us-east-1'
);
4. Verify the warehouse connection
Regardless of which method you used to create the Catalog, you can verify end-to-end connectivity through the following SQL.
-- Switch to the Catalog
SWITCH nessie_vc;
-- Create a namespace (database)
CREATE DATABASE demo;
USE demo;
-- Create an Iceberg table
CREATE TABLE my_iceberg_table (
id INT,
name STRING
)
PROPERTIES (
'write-format'='parquet'
);
-- Insert data
INSERT INTO my_iceberg_table VALUES (1, 'alice'), (2, 'bob');
-- Query data
SELECT * FROM my_iceberg_table;
-- Expected result:
-- +------+-------+
-- | id | name |
-- +------+-------+
-- | 1 | alice |
-- | 2 | bob |
-- +------+-------+
A successful query confirms the configured metadata and data access path: VeloDB Cloud → Nessie -> S3.
For SQL capabilities and limitations, see Iceberg Catalog.
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.