Instructor-led training
Introduction to Spark with Python Training in Wanaque, New Jersey
Private Python Programming training for organizations from Hartmann Software Group, delivered onsite in Wanaque, New Jersey 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 2.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 Wanaque, New Jersey 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 in this course is rarely the obstacle. The difficulty is that Spark programs describe a computation that runs later, on data split across executors. Code that looks like ordinary Python behaves differently from a local script. The syllabus builds up the model in a deliberate order.
- Lazy evaluation first (Session 2). RDD lifecycle, partitioning, and transformations such as map and filter. A common misconception is that a line has run because it executed without error. Transformations only build a plan, so problems often surface at the point where a result is requested.
- Higher-level APIs (Session 3). SparkSession, schema inference, JSON/CSV/Parquet/text, the DataFrame query DSL (filtering, grouping, aggregation), SQL queries, and flatMap(), explode() and split(). The syllabus also compares DataFrames with RDDs, so you learn when each is appropriate.
- Cost of data movement (Sessions 4-5). Grouping, reducing and joining; shuffling; narrow versus wide dependencies. Then Catalyst (explain(), query plans, why lambdas limit optimization) and Tungsten. Many learners assume that correct output means acceptable performance. Here you learn to read a plan and see where shuffles occur.
- Tuning tools. Caching and storage types, minimizing shuffles, broadcast variables and accumulators.
- Running it for real (Session 6). The driver, executors and tasks, SparkSession configuration, spark-submit, cluster managers, logging and debugging.
- Streaming (Session 7). Structured Streaming treats a stream as a table that grows, with a result table, sources and sinks, and Kafka consumed through the "kafka" format.
Who it suits and where it fits
This is an introductory, three-day course for developers, data analysts, architects and technical managers who want hands-on Spark experience. The prerequisite is working knowledge of some programming language. All labs use Python through the pyspark shell and through standalone programs.
If Python itself is new to your team, Introduction to Python 3.x is a sensible earlier step, because the labs then focus on Spark concepts instead of language basics.
Organizations standardizing on Spark 3 can look at Introduction to Spark 3 with Python, which covers the same ground with a longer schedule. Private training can also be tailored to the versions your organization runs; you can request a training proposal to discuss that.
Related Python courses are listed in the Python Programming courses and learning guide.
Illustrative applications
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.
- Batch analysis of log or event files. A team might load JSON or CSV with a SparkSession, infer a schema, filter and aggregate with the DataFrame DSL or SQL, then write Parquet. Splitting and exploding a delimited field relies on split() and explode().
- Tuning a slow join. An analyst might find a job slow after joining two large datasets. Reading the explain() output shows the shuffle. A broadcast variable, caching a reused result, or removing a lambda that blocks optimization could then be tried and compared.
- Consuming a Kafka topic. A developer might read a topic with the "kafka" format in Structured Streaming, process the stream as an unbounded table, and write to a sink. The same logic is packaged as a standalone application and launched with spark-submit.
AI coding assistants and Spark work
AI coding assistants are useful for drafting DataFrame chains, SQL queries, schema definitions and boilerplate for building a SparkSession. They can also explain unfamiliar API calls. For these topics, though, plausible code is often not good code.
- Performance blind spots. An assistant may write Python lambdas where built-in column expressions would let Catalyst optimize. It may also introduce an unnecessary wide transformation, or skip caching and broadcasting where they matter.
- Laziness and scale. Suggestions that pull large results back to the driver can work on a sample and fail on real data. Assistants also tend not to reason about partitioning.
- API mixing. Generated code may blend RDD and DataFrame styles, or use calls that don't match the Spark version you run.
- Streaming details. Source options, sinks and the table model need checking against your own Kafka setup.
To verify, run generated code on a small sample first. Inspect explain() for shuffles, compare results against a simple known-good query, and check behavior against the versions you actually deploy. The course's emphasis on query plans and shuffles gives you the vocabulary to review assistant output critically.
Frequently asked questions
What level is this course?
It is introductory and runs three days. It suits developers, data analysts, architects and technical managers who want hands-on Spark experience with Python.
What do I need to know beforehand?
Working knowledge of some programming language. No Java experience is needed, and all examples and labs use Python.
What does the course cover?
Spark architecture and the Spark shell, RDDs and lazy evaluation, Spark SQL and DataFrames, shuffling and the Catalyst and Tungsten optimizers, caching, broadcast variables and accumulators, standalone applications with spark-submit, and Structured Streaming with Kafka.
Can this be delivered privately for our team, onsite or online?
Yes. HSG provides private training for organizations, delivered at your location or live online.
Can the content be customized?
Private course content can be customized, including tailoring to the technology versions your organization uses. Use the training proposal request to describe your needs.
Training locations
Introduction to Spark with Python training across the U.S. and beyond.
We provide private Introduction to Spark with Python training for organizations, onsite at your location or live online, throughout the United States and internationally.
View all Introduction to Spark 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.