Skip to content

Add a notebook to demonstrate a real life use case for py iceberg

License

Notifications You must be signed in to change notification settings

tusharchou/docker-spark-iceberg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spark + Iceberg Quickstart Image

This is a docker compose environment to quickly get up and running with a Spark environment and a local Iceberg catalog. It uses a postgres database as a JDBC catalog.

note: If you don't have docker installed, you can head over to the Get Docker page for installation instructions.

Usage

First, start up the spark-iceberg and postgres container by running:

docker-compose up

Next, run any of the following commands, depending on which shell you prefer to use:

docker exec -it spark-iceberg spark-shell
docker exec -it spark-iceberg spark-sql
docker exec -it spark-iceberg pyspark
docker exec -it spark-iceberg notebook

To stop the service, just run docker-compose down.

Troubleshooting & Maintenance

Resetting Catalog Data

To reset the catalog and data, remove the postgres and warehouse directories.

docker-compose down && docker-compose kill && rm -rf ./postgres && rm -rf ./warehouse

Refreshing Docker Image

The prebuilt spark image is uploaded to Dockerhub. Out of convenience, the image tag defaults to latest.

If you have an older version of the image, you might need to remove it to upgrade.

docker image rm tabulario/spark-iceberg && docker-compose pull

For more information on getting started with using Iceberg, checkout the Getting Started guide in the official docs.

About

Add a notebook to demonstrate a real life use case for py iceberg

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 89.8%
  • Dockerfile 3.2%
  • Java 3.1%
  • Shell 2.8%
  • Python 1.1%