Skip to main content

Capstone Project: Real-Time Log Analytics Platform

Project Duration: 4-5 hours Complexity: Production-grade implementation Skills Tested: All modules 1-7

Project Overview

Build a complete log analytics platform that:
  1. Ingests web server logs in real-time
  2. Stores data reliably in HDFS
  3. Processes logs using MapReduce and Hive
  4. Stores aggregated results in HBase for fast queries
  5. Orchestrates the entire pipeline with Oozie
  6. Monitors system health and job performance

Business Requirements

Scenario: You’re building analytics for a high-traffic e-commerce website Requirements:
  • Process 100GB of access logs daily
  • Identify top products, traffic sources, and error rates
  • Sessionize user journeys
  • Detect anomalies (unusual traffic spikes, error patterns)
  • Generate hourly reports
  • Provide sub-second query response for dashboards

Architecture


Implementation Steps

Step 1: Data Ingestion with Flume

Create Flume Configuration (web-logs.conf):
Start Flume Agent:

Step 2: Parse Logs with MapReduce

LogParser.java:
Run:

Step 3: Create Hive Tables

Create External Table on Parsed Logs:
Analytical Queries:

Step 4: Sessionization with MapReduce

SessionBuilder.java:

Step 5: Store Aggregates in HBase

Create HBase Table:
Populate from Hive:
Query HBase (fast lookups for dashboard):

Step 6: Orchestrate with Oozie

workflow.xml:
coordinator.xml (Schedule hourly):

Step 7: Monitoring Dashboard

Grafana Dashboard (Prometheus metrics):

Testing

Unit Tests

Integration Tests


Project Deliverables

  1. Source Code: All MapReduce, Hive, and Java files
  2. Configuration: Flume, Oozie, HBase configs
  3. Documentation: Architecture diagram, setup instructions
  4. Dashboard: Grafana JSON export
  5. Performance Report: Job execution times, resource usage
  6. Lessons Learned: Challenges faced and solutions

Bonus Challenges

  1. Real-time Processing: Replace MapReduce with Spark Streaming
  2. Machine Learning: Detect anomalies using Spark MLlib
  3. Data Quality: Add data validation and cleansing steps
  4. Cost Optimization: Implement data lifecycle policies
  5. Multi-tenancy: Support multiple websites in same pipeline

Congratulations!

You’ve built a production-ready data pipeline using the full Hadoop ecosystem. This capstone demonstrates:
  • Architecture Design: Multi-layer data pipeline
  • Data Engineering: ETL, parsing, aggregation
  • Performance: Optimization techniques
  • Operations: Monitoring, orchestration
  • Integration: Multiple Hadoop components working together

Next Steps

  • Deploy to cloud (AWS EMR, Azure HDInsight, GCP Dataproc)
  • Explore modern alternatives (Apache Spark, Apache Flink)
  • Consider managed services (Databricks, Snowflake)
  • Share your project on GitHub!

Back to Course Overview

Review course structure and explore other modules