mrenau / nessie-demos

Demos for Nessie. Nessie provides Git-like capabilities for your Data Lake.

Home Page:https://projectnessie.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nessie Binder Demos

These demos run under binder and can be found at:

The are automatically rebuilt every time we push to main. They are unit tested using testbook library to ensure we get the correct results as the underlying libraries continue to grow/mature.

Upgrade instructions

Because of the split between Binder and unit tests it wasn't totally trivial to create a single place to update all versions. Some versions have to be updated in multiple places:

Nessie

Nessie version is set in Binder at docker/binder/requirements_base.txt. Currently, Iceberg and Delta both support only 0.9.x of Nessie.

Iceberg

Currently we are using Iceberg 0.12.0 and it is specified in both iceberg notebooks as well as docker/utils/__init__.py

Delta

Currently Delta version is taken directly from the Nessie version and isn't explicitly noted. It is currently 1.0.0-nessie

Spark

Only has to be updated in docker/binder/requirements.txt. Currently Iceberg supports 3.0.x and 3.1.x while delta late supports 3.1.x only.

Flink

Flink version is set in Binder at docker/binder/requirements_flink.txt. Currently, Iceberg supports only 1.12.1.

Hadoop

Hadoop libs are used by flink and currently specified in docker/utils/__init__.py only. We use 2.10.1 with Flink and Hive.

Hive

Current Hive version that is being used 2.3.9 which supports Hadoop version of 2.10.1. To update the version, it needs to be only updated in docker/utils/__init__.py.

Binder

Binder is a more customizable platform for Jupyter notebooks and more (see their website). Binder generates a Dockerfile + image based on the settings in the source GitHub repository (other sources are possible). It is possible to pre-install both e.g. Ubuntu and/or Python packages into the Docker image generated by Binder.

Of course, Binder just lets a user "simply start" a notebook via a simple "click on a link".

Development

For development, you will need to make sure to have the following installed:

  • Python 3.7+
  • pre-commit

Regarding pre-commit, you will need to make sure is installed through pre-commit install in order to install the hooks locally since this repo executes some several scripts in pre-commit stage.

To run the notebooks unit tests, in notebook folder, run the following commands:

  1. pip install -r requirements_dev.txt
  2. tox

Running the unit tests takes time since it will need to download all the binaries files like Hive, Flink ..etc and then it will run the tests.

About

Demos for Nessie. Nessie provides Git-like capabilities for your Data Lake.

https://projectnessie.org/

License:Apache License 2.0


Languages

Language:Jupyter Notebook 75.0%Language:Python 17.4%Language:Shell 7.2%Language:Dockerfile 0.4%