Instructor-led training
Introduction to Spark 3 with Python Training in Easton, Pennsylvania
Private Python Programming training for organizations from Hartmann Software Group, delivered onsite in Easton, Pennsylvania or live online.
What you'll learn
This course introduces the Apache Spark distributed computing engine, and is suitable for developers, data analysts, architects, technical managers, and anyone who needs to use Spark in a hands-on manner. It is based on the Spark 3.x release. All examples and labs use Python for programming.
The course provides a solid technical introduction to the Spark architecture and how Spark works. It covers the basic building blocks of Spark (e.g. RDDs and the distributed compute engine), as well as higher-level constructs that provide a simpler and more capable interface (e.g. DataFrames and Spark SQL). It includes in-depth coverage of Spark SQL and DataFrames, which are now the preferred programming API. This includes exploring possible performance issues and strategies for optimization.
The course also covers more advanced capabilities such as the use of Spark Streaming to process streaming data, and integrating with the Kafka server.
The course is very hands-on, with many labs. Participants will interact with Spark through the pyspark shell (for interactive, ad-hoc processing) as well as through programs using the Spark API. After taking this course, you will be ready to work with Spark in an informed and productive manner.
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Easton, Pennsylvania or live online. Dates, delivery format, and course content are arranged around your team's requirements.
This course is not currently scheduled as a public class for individual enrollment.
Request Group TrainingPrerequisites
Course Outline
What makes Spark hard to master
The Python syntax is rarely the obstacle. The difficulty is that your code describes a computation that Spark plans and runs across many executors, so code that is correct can still be slow, and a small change can alter how much data moves between machines. The syllabus builds this understanding in layers.
- Execution model first. Sessions 1-2 cover the Spark shell,
SparkContext, RDD lifecycle, lazy evaluation, partitioning and transformations such asmapandfilter. Nothing runs until an action is called, a point that often surprises newcomers. - Higher-level APIs. Session 3 moves to
SparkSession, DataFrames, schema inference, the untyped query DSL (filtering, grouping, aggregation), SQL queries,flatMap(),explode()andsplit(), and a comparison of DataFrames with RDDs. - Why things are slow. Sessions 4-5 cover shuffling, narrow versus wide dependencies, reading
explain()query plans, the Catalyst and Tungsten optimizers, caching, broadcast variables and accumulators. - Running it for real. Session 6 covers
SparkSession.Builder,spark-submit, driver, executors and tasks, cluster managers, logging and debugging. Session 7 covers Structured Streaming and consuming Kafka data.
Common misconceptions include treating a DataFrame like an in-memory table, assuming caching always helps, and assuming a lambda is as optimizable as a built-in column expression. The syllabus addresses the last one directly under "issues with lambdas" in the Catalyst topic. Streaming adds another shift: you reason about a growing result table rather than a loop over records.
Who it suits and where it fits
This is an introductory, four-day course for developers, data analysts, architects and technical managers who will work with Spark hands-on. The stated prerequisite is working knowledge of some programming language. No Java experience is needed, and all labs use Python.
If Python itself is new to you, Introduction to Python 3.x is a sensible step first, because the labs go straight into transformations and query plans rather than language basics. Analysts who mostly work with single-machine data may want Python Data Analysis with NumPy and Pandas alongside or after this course. It helps you decide which workloads belong in a local DataFrame library and which need a distributed engine.
Teams standardizing on particular Spark or Python releases can ask about tailoring through a training proposal. More options are listed in the Python Programming courses and learning guide.
Illustrative scenarios
The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.
- Slow batch job. A team might have a nightly aggregation that joins two large datasets and runs far longer than expected. The Session 4-5 material applies: read the
explain()plan, spot the wide dependency, reduce shuffling, and consider a broadcast variable for the smaller side. - Mixed-format ingestion. An analyst might need to combine JSON, CSV and Parquet files into one result. For example, they could load each with
SparkSession, rely on schema inference, split andexplode()a delimited field, then query with the DataFrame DSL or SQL and save the output. - Event stream processing. A developer might need to consume messages from a Kafka topic and keep running aggregates. Structured Streaming with the "kafka" format, the result-table model, sources and sinks, and packaging the job for
spark-submitfit this case.
Using AI coding assistants with Spark
AI coding assistants are useful for drafting DataFrame transformations, schema definitions, SparkSession configuration boilerplate and SQL variants of a query. They can also explain an unfamiliar explain() output line by line.
They fail in predictable ways on these topics:
- They often produce pandas-style or RDD-style code where a DataFrame expression would let Catalyst optimize the plan, including lambdas in places that block optimization.
- Joins and groupings can look correct while triggering expensive shuffles. Suggested caching may waste memory or help nothing.
- Streaming code can mix batch and streaming idioms or misread how the result table and sinks behave.
- Configuration advice may not match your cluster manager or Spark release.
To verify, run generated code on a small sample first and compare results with a known answer. Then inspect the explain() plan for unexpected shuffles, and check logs when behavior differs between the shell and a submitted application. Treat the assistant's performance claims as hypotheses to test, not conclusions.
Frequently asked questions
What level is this course?
It is introductory. It starts with Spark's architecture and RDDs and builds to DataFrames, Spark SQL, performance tuning, standalone applications and Structured Streaming.
What do I need to know beforehand?
Working knowledge of some programming language. Java experience is not needed, and labs are in Python.
Does it cover performance tuning?
Yes. Two sessions focus on it: shuffling and narrow versus wide dependencies, the Catalyst and Tungsten optimizers,explain() query plans, caching, broadcast variables, accumulators and general guidelines.
Does it include streaming?
Yes. The final session covers Structured Streaming, the table paradigm and result table, sources and sinks, and consuming Kafka data with the "kafka" format.
Can this be delivered privately for our team and customized?
HSG delivers private training onsite at your location or live online, and content can be customized, including to the technology versions your organization uses. Use the training proposal link on this page to describe your needs.
Training locations
Introduction to Spark 3 with Python training across the U.S. and beyond.
We provide private Introduction to Spark 3 with Python training for organizations, onsite at your location or live online, throughout the United States and internationally.
View all Introduction to Spark 3 with Python training locations
Train your team with HSG
Private, instructor-led training customized for your organization.
- Onsite or live online delivery
- Customized curriculum
- For a single employee or an entire team
- Flexible scheduling
- Experienced instructors
Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com
Ready to train your team?
Let's customize this training for your organization.
Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.