This is an automated email from the ASF dual-hosted git repository.
dweeks pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-docs.git
The following commit(s) were added to refs/heads/main by this push:
new 20a09e47 Update Docker+Spark quickstart example to 1.2.0
new 64440289 Merge pull request #213 from nastra/docker-compose-1.2.0
20a09e47 is described below
commit 20a09e4710ad70a5a64afb83601f5225ccd87516
Author: Eduard Tudenhoefner <[email protected]>
AuthorDate: Wed Mar 22 11:32:43 2023 +0100
Update Docker+Spark quickstart example to 1.2.0
---
landing-page/content/common/spark-quickstart.md | 26 +++++++++++++++++++------
1 file changed, 20 insertions(+), 6 deletions(-)
diff --git a/landing-page/content/common/spark-quickstart.md
b/landing-page/content/common/spark-quickstart.md
index 2047a1d1..e0830e50 100644
--- a/landing-page/content/common/spark-quickstart.md
+++ b/landing-page/content/common/spark-quickstart.md
@@ -42,7 +42,7 @@ highlight some powerful features. You can learn more about
Iceberg's Spark runti
### Docker-Compose
-The fastest way to get started is to use a docker-compose file that uses the
the [tabulario/spark-iceberg](https://hub.docker.com/r/tabulario/spark-iceberg)
image
+The fastest way to get started is to use a docker-compose file that uses the
[tabulario/spark-iceberg](https://hub.docker.com/r/tabulario/spark-iceberg)
image
which contains a local Spark cluster with a configured Iceberg catalog. To use
this, you'll need to install the [Docker
CLI](https://docs.docker.com/get-docker/) as well as the [Docker Compose
CLI](https://github.com/docker/compose-cli/blob/main/INSTALL.md).
Once you have those, save the yaml below into a file named
`docker-compose.yml`:
@@ -55,6 +55,8 @@ services:
image: tabulario/spark-iceberg
container_name: spark-iceberg
build: spark/
+ networks:
+ iceberg_net:
depends_on:
- rest
- minio
@@ -68,18 +70,20 @@ services:
ports:
- 8888:8888
- 8080:8080
- links:
- - rest:rest
- - minio:minio
+ - 10000:10000
+ - 10001:10001
rest:
image: tabulario/iceberg-rest
+ container_name: iceberg-rest
+ networks:
+ iceberg_net:
ports:
- 8181:8181
environment:
- AWS_ACCESS_KEY_ID=admin
- AWS_SECRET_ACCESS_KEY=password
- AWS_REGION=us-east-1
- - CATALOG_WAREHOUSE=s3a://warehouse/wh/
+ - CATALOG_WAREHOUSE=s3://warehouse/
- CATALOG_IO__IMPL=org.apache.iceberg.aws.s3.S3FileIO
- CATALOG_S3_ENDPOINT=http://minio:9000
minio:
@@ -88,6 +92,11 @@ services:
environment:
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=password
+ - MINIO_DOMAIN=minio
+ networks:
+ iceberg_net:
+ aliases:
+ - warehouse.minio
ports:
- 9001:9001
- 9000:9000
@@ -97,6 +106,8 @@ services:
- minio
image: minio/mc
container_name: mc
+ networks:
+ iceberg_net:
environment:
- AWS_ACCESS_KEY_ID=admin
- AWS_SECRET_ACCESS_KEY=password
@@ -107,8 +118,11 @@ services:
/usr/bin/mc rm -r --force minio/warehouse;
/usr/bin/mc mb minio/warehouse;
/usr/bin/mc policy set public minio/warehouse;
- exit 0;
+ tail -f /dev/null
"
+networks:
+ iceberg_net:
+
```
Next, start up the docker containers with this command: