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 thestarrocks/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.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:
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 thedemo.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.
