Skip to main content

Production Deployment & Operations

Module Duration: 3-4 hours Focus: Real-world deployment, security, monitoring, troubleshooting Outcome: Production-ready operational knowledge

Cluster Planning

Hardware Selection

NameNode:
DataNode:
Edge Node (client gateway):

Cluster Sizing

Network Topology

Rack Awareness Configuration:

Security

Kerberos Authentication

1. Install Kerberos:
2. Create Principals:
3. Configure Hadoop:

Encryption

Data at Rest (HDFS Transparent Encryption):
Data in Transit:

Authorization (Apache Ranger)


High Availability (HA)

NameNode HA with QJM

Architecture:
Configuration:
Initialize and Start:

Monitoring

Key Metrics to Monitor

NameNode Metrics:
DataNode Metrics:
YARN Metrics:

Prometheus + Grafana Setup

1. Export Hadoop Metrics:
2. Prometheus Configuration:
3. Grafana Dashboard:

Alerting Rules


Backup and Disaster Recovery

Metadata Backup

Data Replication Across Clusters

DistCp (Distributed Copy):
Automated Daily Backup:

Troubleshooting Common Issues

Issue 1: Slow Job Performance

Diagnosis:
Solutions:

Issue 2: NameNode Out of Memory

Diagnosis:
Solutions:
  1. Increase heap:
  2. Enable HDFS Federation (multiple NameNodes)
  3. Clean up small files:

Issue 3: DataNode Disk Failure

Detection:
Recovery:

Capacity Planning

Growth Projection

Cost Optimization

Data Lifecycle Management:

Upgrading Hadoop

Rolling Upgrade Process


Best Practices Checklist

Security

  • Enable Kerberos authentication
  • Use encryption for sensitive data
  • Implement role-based access control (Ranger)
  • Regular security audits
  • Rotate credentials and keytabs

Availability

  • Deploy NameNode HA
  • Use ZooKeeper for coordination
  • Regular metadata backups
  • DR cluster for critical data
  • Test failover procedures

Performance

  • Monitor and tune GC settings
  • Optimize block size and replication factor
  • Use compression appropriately
  • Balance cluster regularly
  • Decommission slow/faulty nodes

Operations

  • Centralized logging (ELK stack)
  • Automated alerting (Prometheus/Grafana)
  • Capacity planning and forecasting
  • Regular cluster health checks
  • Documentation and runbooks

What’s Next?

Capstone Project: Building a Complete Data Pipeline

Apply everything you’ve learned in a comprehensive, production-ready project