IIT Madras Zanzibar · Teaching

← All Courses

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.

Term
Even Semester, March 2026 – July 2026
Schedule
MTech Core · Monday, 2:00 PM – 4:40 PM
Instructor
Dr. Innocent Nyalala · Room 105 (F1) · Office Hours: Wednesday, 2:00 PM – 4:00 PM · innocent@iitmz.ac.in
Course Links
Question Bank · Lab Explorer & Code Previews · Big Data Cheat Sheet (PDF) · Worked Architecture Workbook (PDF) · Practical Capstone Mock & Rubric (PDF) · Self-Test Suite (.py) · Lab 1 Slides · Faculty Course Page ↗

Schedule

SessionDay & TimeDuration
LabMonday, 2:00 PM – 4:40 PM2 hr 40 min · 15 sessions

Lab Slides & Compiled Summaries (Labs 1–15)

LabTopicSlides & Summaries
Lab 1 Course Orientation and Big Data Landscape 2026: Docker setup, first PySpark job, Delta Lake write, Spark UI exploration
Lab 2 Lakehouse Architecture and Delta Lake Foundations: ACID operations, time travel, MERGE/UPSERT patterns
Lab 3 Apache Iceberg and Data Governance: table creation, schema evolution, partition evolution, Nessie Catalog
Lab 4 Apache Spark 3.5 Foundations and DataFrame API: reading CSV/JSON/Parquet, transformations and actions
Lab 5 Spark SQL, Joins and Window Functions: complex SQL queries, all join types, window functions on time-series data
Lab 6 Data Orchestration with Apache Airflow: build Airflow DAGs, schedule batch Spark jobs, retries, and XComs
Lab 7 Apache Kafka and Real-Time Messaging: topics, partitions, consumer groups, and East African fintech streaming pipelines
Lab 8 Spark Structured Streaming: watermarks, sliding window aggregations, and fault-tolerant checkpointing
Lab 9 Data Visualization and Dashboards: analytical reporting and operational dashboards over lakehouse tables
Lab 10 Distributed Machine Learning with Apache Spark MLlib: classification pipelines and distributed tuning
Lab 11 MLOps with MLflow and Model Registry: log experiments, compare runs, and manage stage promotions
Lab 12 DevOps, Docker, Kubernetes and CI/CD: containerizing data/ML pipelines and serving inference APIs
Lab 13 Big Data Observability (Prometheus vs. Grafana): metrics scraping, latency telemetry, and alerting dashboards
Lab 14 Project Integration Sprint and Final Preparation: connecting batch, streaming, MLflow, and monitoring
Lab 15 Course Review, Emerging Technologies and Career Paths: capstone session and final project presentations

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.

ModuleCore Pipeline TopicCode & Notebooks
Lab 1–3Lakehouse Partitioning, Delta Log Commits & Time TravelPython (.py) Notebook (.ipynb) Colab ↗
Lab 4–5Spark SQL DataFrames, Window Ranking & Cumulative TotalsPython (.py) Notebook (.ipynb) Colab ↗
Lab 7–8Structured Streaming, Event-Time Windows & WatermarksPython (.py) Notebook (.ipynb) Colab ↗
Lab 10–11Distributed ML Pipelines & MLflow Experiment TrackingPython (.py) Notebook (.ipynb) Colab ↗
Lab 13–15Pipeline Telemetry, Latency Quantiles & Prometheus MetricsPython (.py) Notebook (.ipynb) Colab ↗
Lab 6Airflow Workflow Orchestration: Topological DAGs, Idempotent Retries & SLAsPython (.py) Notebook (.ipynb) Colab ↗
Lab 11–12MLflow Experiment Tracking, Run Ranking & Model Registry Promotion GatesPython (.py) Notebook (.ipynb) Colab ↗

Grading

ComponentWeightDetails
Lab assignments (A1–A13)30% (Indicative)One per session, submitted at the end of each lab. Graded on working code and written reflection.
Quiz 115%Apr 16, 2026 · Written theory quiz (90 min) · Covers Labs 1–6 (Foundations phase).
Course project30% (Indicative)End-to-end big data pipeline using tools from all three phases · Code freeze at Lab 15.
End-semester examination25% (Indicative)June – July 2026 · Theory and practical components.

Learning Outcomes

  1. 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.
  2. Build and manage Delta Lake and Apache Iceberg tables with ACID transactions, time travel, schema evolution, and partition evolution.
  3. Write complex PySpark SQL queries and window functions over large datasets, and profile and fix performance bottlenecks using Adaptive Query Execution.
  4. Orchestrate batch Spark workloads using Apache Airflow DAGs and Dagster pipelines with dependency management and scheduling.
  5. Build real-time streaming pipelines with Apache Kafka and Spark Structured Streaming, implementing watermarks, window aggregations, and exactly-once semantics.
  6. Create live observability dashboards with Grafana and Prometheus, and deploy interactive data applications with Streamlit.
  7. Train and tune distributed ML models with Spark MLlib and Ray, tracking experiments and registering models with MLflow.
  8. Package and deploy ML models as production REST APIs using BentoML and Docker, with monitoring and data lineage via OpenLineage.

Resources

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.