Capability Development / Data Engineering
PySpark for Data Engineering
This training introduces PySpark as a powerful framework for building scalable data engineering solutions on distributed systems.
PySpark for Data Engineering
Overview
This training introduces PySpark as a powerful framework for building scalable data engineering solutions on distributed systems. It focuses on processing large datasets, working with DataFrames and RDDs, building ETL pipelines, optimizing Spark jobs, and applying PySpark MLlib for large-scale analytics and machine learning workflows.
Objective
The objective of this training is to enable participants to use PySpark for distributed data processing, develop efficient ETL pipelines, manage large-scale transformations, optimize Spark performance, and understand how MLlib supports machine learning use cases in big data environments.
Course Curriculum
Introduction to PySpark
- Understand Spark and PySpark
- Apply distributed computing concepts
- Create SparkSession and SparkContext
- Execute jobs on clusters
- Set up PySpark environment
Working with DataFrames and RDDs
- Work with RDD fundamentals
- Create RDDs
- Transform RDDs
- Use map/filter
- Use reduce/collect
- Use DataFrame APIs
- Load files
- Load tables
- Select/filter
- Rename/derive
- Manage schemas and data types
- Infer schemas
- Define schemas
- Nested fields
- Apply transformations and actions
- Narrow transforms
- Wide transforms
- Trigger actions
- Lazy execution
- Query data with Spark SQL
- Create temporary views
- Run SQL against DataFrames
Data Processing with PySpark
- Read large-scale data formats
- CSV/JSON
- Parquet/ORC
- Avro
- Schema options
- Transform structured data
- Filter/sort
- Select/rename
- Derived columns
- Join and aggregate datasets
- Inner/outer joins
- GroupBy
- Rollups
- Handle data quality issues
- Null handling
- Duplicate checks
- Cleansing rules
- Build advanced transformations
- Windows
- Ranking
- Nested data
PySpark SQL and Advanced Functions
- Apply built-in PySpark functions
- String funcs
- Date funcs
- Numeric funcs
- when/lit/col/expr
- Work with user-defined functions
- Create UDFs for custom logic
- Use Pandas UDFs for performance
- Execute Spark SQL queries
- Register tables
- Create views
- SQL + DataFrames
PySpark for ETL
- Ingest data from multiple sources
- Cleanse and standardize datasets
- Design scalable pipelines
- Write data to target systems
- Build batch ETL workflows
Structured Streaming with PySpark
- Process streaming data
- Read streams
- Source setup
- Write sinks
- Manage streaming operations
- Triggers
- Checkpoints
- Late data
- Watermarking
- Build real-time pipelines
- Micro-batches
- Query status
Performance Optimization in PySpark
- Partitioning and repartitioning
- Caching and persistence
- Shuffle optimization
- Broadcast joins
- Spark UI and execution plan analysis
PySpark Production Readiness
- Build reliable PySpark jobs
- Logging
- Retries
- Input checks
- Output checks
- Package reusable code
- Modules
- Configs
- Parameters
- Environments
- Monitor production pipelines
- Failures
- Duration
- Volume
- Alerts
Machine Learning with PySpark MLlib
- Explore MLlib
- ML basics
- Use cases
- Prepare features
- Encode
- Scale
- Assemble
- Build pipelines
- Transformers
- Estimators
- Stages
- Train models
- Classification
- Regression
- Evaluate models
- Metrics
- Validation
- Prediction

