← Real-time Analytics

Level 3 · Module 10

Controlling Storage Cost and Data Lifecycle in Apache Doris

Make lifecycle choices for compression, retention, partitions, and recoverable deletion.
115 minCourse availableLab availableQuiz available
⌘

Hands-on notebook

lab10_manage_data.ipynb

Make lifecycle choices for compression, retention, partitions, and recoverable deletion.

1. Supported operating systems

macos, linux, wsl2

2. What you will run

The highlighted notebook is relative to the cloned repository root. Keep the full checkout because Labs can import shared helpers and reuse earlier module assets.

doris-courses/
└── doris-course/01-real-time-analytics/
    └── level3/
        └── module10-managing-data/
            └── lab10_manage_data.ipynb  ← run this notebook

3. Clone, prepare, and launch

Replace <LOCAL_PARENT_DIRECTORY> with a directory on your machine. Run these commands in a local terminal, not in this website.

git clone https://github.com/velodb/doris-courses.git <LOCAL_PARENT_DIRECTORY>/doris-courses
cd <LOCAL_PARENT_DIRECTORY>/doris-courses
git checkout --detach 7056c2c75dbb2a131becc78d923d431a8b4f4e8f
cd doris-course/01-real-time-analytics

python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt

jupyter lab level3/module10-managing-data/lab10_manage_data.ipynb

4. Dependencies and services

  • Git
  • Docker Engine or Docker Desktop with Compose v2
  • Python 3.11 or newer
  • JupyterLab

Module environment: Git, Docker Engine or Docker Desktop with Compose v2, Python 3.11 or newer, JupyterLab

The commands above prepare the shared Python environment. Follow the notebook's opening checks for module-specific containers, credentials, datasets, or external services before running later cells.

View notebook on GitHub ↗
Need help? Contact us!