How to Export Data to Apache Iceberg on AWS
Batch-export GridGain 8 data to an Apache Iceberg table in AWS Glue and Amazon S3 with COPY FROM ... INTO, query it in Athena, then import it back.
Prerequisites
An enabled
gridgain-bulkloadmodule. The module needs the SLF4J API, which the baselibsfolder does not include, so enable theignite-slf4jmodule too. Without it, the IcebergCOPYfails withNoClassDefFoundError: org/slf4j/LoggerFactory.An up and running GridGain node.
A valid AWS account.
GridGain 8.10 or later, with server-side S3 and Iceberg
COPYallowed in the node configuration (see Allow COPY to Use S3 and Iceberg).Brief knowledge of the COPY command.
Overview
GridGain offers batch data export/import with the COPY FROM <source> INTO <target> command, which supports a variety of data formats and sources/destinations.
This guide explains how to:
Export data from GridGain as an Apache Iceberg table to Amazon services - AWS Glue - and store it in Amazon S3.
Apache Iceberg is an open table format for huge analytic datasets.
AWS Glue is a fully managed ETL (extract, transform, and load) service.
Query the exported data using Amazon Athena - an interactive query service that enables analyzing data directly in AWS Glue and Amazon S3 with the standard SQL queries.
Import data from AWS to GridGain.
Prepare the AWS Environment
Create AWS access keys.
Create an S3 bucket named
s3://iceberg-warehouse-1/. Accept the default values for all settings.Create an AWS Glue database named
gridgain_glue_iceberg.Create an AWS Athena workgroup named
iceberg-workgroup-1, withs3://iceberg-warehouse-1/athena/as the query result location.
Allow COPY to Use S3 and Iceberg
In GridGain 8.10 and later, server-side COPY to and from object stores such as S3 is closed by default. Without the configuration below, the export command in this guide fails with Server-side file/object-store COPY is disabled on this node. Allow it in the GridGainConfiguration plugin configuration of every node, using an ImportExportConfiguration:
fileAccessEnabledis the master switch. It isfalseby default.allowedS3Bucketslists the buckets (orbucket/key-prefixentries) thatCOPYmay read from and write to.allowedIcebergClasseslists the classes that thecatalog-impl,io-impl, andclient.factoryproperties may name. An empty list forbids IcebergCOPY.
The configuration is node-local and is not distributed over discovery, so set it identically on every node. Otherwise, COPY succeeds or fails depending on which node your client connects to. The user that runs COPY also needs the COPY_FROM_FILE or COPY_TO_FILE security permission when security is enabled.
Create the Table
Create a simple table in GridGain:
Batch-Export the Table to AWS Glue
The AWS Glue data catalog is a persistent technical metadata store. The data is stored in AWS S3.
Command
Export data from the GridGain table to the AWS cloud using the COPY command:
AWS-specific properties:
The AWS Client region requires
s3.client-regionto be explicitly passed as an export property.The AWS Client credentials can be defined as:
Bulk export properties
s3.access-key-id,s3.secret-access-key, ands3.session-token.Environment variables
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY, andAWS_SESSION_TOKEN.Java system properties
aws.accessKeyId,aws.secretAccessKey, andaws.sessionToken.
Examine the Export Results
When the export is complete:
Examine the "destination" S3 bucket:

S3 data Note that a new AWS Glue table has been created, and it refers to S3:

AWS Glue tables Query the exported data with Amazon Athena (using the previously created workgroup) read more. The query should pick up the new table created in AWS Glue:

Athena query
Batch-Import an Apache Iceberg Table to GridGain
To import an Apache Iceberg table from AWS Glue (Amazon S3) to GridGain.
Create a "destination" GridGain table (for example, using DDL). For this guide's purposes, you can reuse an existing GridGain table - just clean it up first:
Swap
FROMandINTOkeywords in the command you have used to upload the data to the cloud:After the import is complete, verify that new entries have appeared in the destination table:
The response should look as follows:
Conclusion
You have successfully completed the guide. You have learned how to bulk-upload Apache Iceberg tables to an AWS Glue catalog (with data residing in Amazon S3) and bulk-download data from AWS Glue / Amazon S3 to GridGain.
Related
COPY command reference - The GridGain SQL command used for batch export and import.
Apache Iceberg documentation - The open table format for huge analytic datasets.
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

