Z5008 · MTech Lab · Even Semester Archive
Big Data Lab
Weekly laboratory course (2 hours 40 minutes per session) where students build containerized data and ML pipelines in Docker using Spark, Delta Lake, Iceberg, Airflow, Kafka, Structured Streaming, MLlib, and MLflow.
Schedule
| Session | Day & Time | Duration |
|---|---|---|
| Lab | Monday, 2:00 PM – 4:40 PM | 2 hr 40 min · 15 sessions |
Lab Slides & Compiled Summaries (Labs 1–15)
Labs: Lab 1 Lab 2 Lab 3 Lab 4 Lab 5 Lab 6 Lab 7 Lab 8 Lab 9 Lab 10 Lab 11 Lab 12 Lab 13 Lab 14 Lab 15 Colab Modules
| Lab | Topic | Slides & Summaries |
|---|---|---|
| Lab 1 | Course Orientation and Big Data Landscape 2026: Docker setup, first PySpark job, Delta Lake write, Spark UI exploration | Slides · Labs 1–3 Summary PDF |
| Lab 2 | Lakehouse Architecture and Delta Lake Foundations: ACID operations, time travel, MERGE/UPSERT patterns | Slides |
| Lab 3 | Apache Iceberg and Data Governance: table creation, schema evolution, partition evolution, Nessie Catalog | Slides |
| Lab 4 | Apache Spark 3.5 Foundations and DataFrame API: reading CSV/JSON/Parquet, transformations and actions | Slides · Labs 4–5 Summary PDF |
| Lab 5 | Spark SQL, Joins and Window Functions: complex SQL queries, all join types, window functions on time-series data | Slides |
| Lab 6 | Data Orchestration with Apache Airflow: build Airflow DAGs, schedule batch Spark jobs, retries, and XComs | Slides · Labs 6–8 Summary PDF |
| Lab 7 | Apache Kafka and Real-Time Messaging: topics, partitions, consumer groups, and East African fintech streaming pipelines | Slides |
| Lab 8 | Spark Structured Streaming: watermarks, sliding window aggregations, and fault-tolerant checkpointing | Slides |
| Lab 9 | Data Visualization and Dashboards: analytical reporting and operational dashboards over lakehouse tables | Slides · Labs 9–12 Summary PDF |
| Lab 10 | Distributed Machine Learning with Apache Spark MLlib: classification pipelines and distributed tuning | Slides |
| Lab 11 | MLOps with MLflow and Model Registry: log experiments, compare runs, and manage stage promotions | Slides |
| Lab 12 | DevOps, Docker, Kubernetes and CI/CD: containerizing data/ML pipelines and serving inference APIs | Slides |
| Lab 13 | Big Data Observability (Prometheus vs. Grafana): metrics scraping, latency telemetry, and alerting dashboards | Slides · Labs 13–15 Summary PDF |
| Lab 14 | Project Integration Sprint and Final Preparation: connecting batch, streaming, MLflow, and monitoring | Slides |
| Lab 15 | Course Review, Emerging Technologies and Career Paths: capstone session and final project presentations | Slides |
Python Reference Modules & Colab Notebooks
Each module pairs an assertion-tested Python script (code/) with a runnable Google Colab notebook (labs/), providing local pure-Python/SQLite fallbacks when executed outside a Spark cluster, or inspect snippets inline in the Z5008 Lab Explorer & Spark/Lakehouse Previews.
| Module | Core Pipeline Topic | Code & Notebooks |
|---|---|---|
| Lab 1–3 | Lakehouse Partitioning, Delta Log Commits & Time Travel | Python (.py) Notebook (.ipynb) Colab ↗ |
| Lab 4–5 | Spark SQL DataFrames, Window Ranking & Cumulative Totals | Python (.py) Notebook (.ipynb) Colab ↗ |
| Lab 7–8 | Structured Streaming, Event-Time Windows & Watermarks | Python (.py) Notebook (.ipynb) Colab ↗ |
| Lab 10–11 | Distributed ML Pipelines & MLflow Experiment Tracking | Python (.py) Notebook (.ipynb) Colab ↗ |
| Lab 13–15 | Pipeline Telemetry, Latency Quantiles & Prometheus Metrics | Python (.py) Notebook (.ipynb) Colab ↗ |
| Lab 6 | Airflow Workflow Orchestration: Topological DAGs, Idempotent Retries & SLAs | Python (.py) Notebook (.ipynb) Colab ↗ |
| Lab 11–12 | MLflow Experiment Tracking, Run Ranking & Model Registry Promotion Gates | Python (.py) Notebook (.ipynb) Colab ↗ |
Grading
| Component | Weight | Details |
|---|---|---|
| Lab assignments (A1–A13) | 30% (Indicative) | One per session, submitted at the end of each lab. Graded on working code and written reflection. |
| Quiz 1 | 15% | Apr 16, 2026 · Written theory quiz (90 min) · Covers Labs 1–6 (Foundations phase). |
| Course project | 30% (Indicative) | End-to-end big data pipeline using tools from all three phases · Code freeze at Lab 15. |
| End-semester examination | 25% (Indicative) | June – July 2026 · Theory and practical components. |
Learning Outcomes
- Deploy a Docker-based big data environment and run end-to-end PySpark jobs, explaining the Spark execution model, DAG stages, and Spark UI metrics.
- Build and manage Delta Lake and Apache Iceberg tables with ACID transactions, time travel, schema evolution, and partition evolution.
- Write complex PySpark SQL queries and window functions over large datasets, and profile and fix performance bottlenecks using Adaptive Query Execution.
- Orchestrate batch Spark workloads using Apache Airflow DAGs and Dagster pipelines with dependency management and scheduling.
- Build real-time streaming pipelines with Apache Kafka and Spark Structured Streaming, implementing watermarks, window aggregations, and exactly-once semantics.
- Create live observability dashboards with Grafana and Prometheus, and deploy interactive data applications with Streamlit.
- Train and tune distributed ML models with Spark MLlib and Ray, tracking experiments and registering models with MLflow.
- Package and deploy ML models as production REST APIs using BentoML and Docker, with monitoring and data lineage via OpenLineage.
Resources
Practice & Self-Tests
Required Textbook
Learning Spark (2nd ed.) · Jules Damji, Brooke Wenig, Tathagata Das, Denny Lee · O'Reilly, 2020
Reference Textbook
Delta Lake: The Definitive Guide · Denny Lee, Tristen Wentling, Scott Haines, Prashanth Babu · O'Reilly, 2024
Reference Textbook
Machine Learning Engineering with MLflow · Natu Lauchande · Packt, 2021
Infrastructure
All labs run on a Docker Compose environment provided at the start of the course. Students run everything locally or on lab machines; no cloud account required.
Policies
Attendance
Attendance is mandatory at all lab sessions. Lab work is submitted before the session ends; the hands-on practice cannot be replicated outside the structured session.
Late work
Late work is not accepted. Deadlines are fixed and announced in advance; submit what you have by the deadline. No extensions.
Academic integrity
Discussing approaches is encouraged; submitting another student's code is not. Every notebook you submit must reflect your own work, which you can explain and extend. Declare any material AI contribution in a notebook header cell.