Skip to main content

Apache Iceberg Lakehouse

This guide will get you up and running with Apache Iceberg™ using the database™, including sample code to highlight some powerful features.

Docker-Compose

The fastest way to get started is to use a docker-compose file that uses the starrocks/fe-ubuntu and starrocks/be-ubuntu images which contain a local cluster with a configured Iceberg catalog. To use this, you’ll need to install the Docker CLI. Once you have Docker installed, save the yaml below into a file named docker-compose.yml:
MinIO AIStor requires a license. Before you start the containers, acquire a license: MinIO AIStor requires a license to run. You can use an existing license, or you can request a new MinIO AIStor Free Tier license. To request a new MinIO AIStor Free Tier license, go to the MinIO AIStor pricing page and select Get Started under the Free tier to obtain a free license. The free tier license allows you to run MinIO AIStor on a single compute resource with one or more drives. Save the license file as minio.license in the same directory as the docker-compose.yml file. The Docker Compose file mounts minio.license into the MinIO AIStor container. Without a valid license, MinIO AIStor starts but denies all S3 operations. Next, start up the docker containers with this command:
You can then run any of the following commands to start a database session.

Adding and Using a Catalog

Creating and using a database

Creating a table

Writing Data to a Table

Reading Data from a Table

Verify that the data is stored in object storage

When you added and used the external catalog, the database started using MinIO as the object store for the demo.nyc.taxis table. If you navigate to http://localhost:9001 and then navigate through the Object Browser menu to warehouse/nyc/taxis/ you can confirm that the database is using MinIO for the storage. Tip The username and password for MinIO are in the docker-compose.yml file. You will be prompted to change the password to something better, just ignore this advice for the tutorial. img

Next Steps

Adding Iceberg to the database

If you already have a StarRocks 3.2.0, or later, environment, it comes with the Iceberg 1.6.0 included. No additional downloads or jars are needed.

Learn More

Now that you’re up and running with Iceberg and the database, check out the StarRocks-Iceberg docs to learn more!