Run interactive workloads on Amazon EMR on EC2 with Spark Connect

Amazon EMR on EC2 Interactive Spark Sessions with Spark Connect
Amazon EMR on EC2 now supports interactive Apache Spark sessions with Spark Connect, allowing data engineers and data scientists to develop and debug Apache Spark applications interactively from managed notebooks in Amazon SageMaker Unified Studio and their own IDEs, such as Jupyter and Visual Studio Code. Each session runs on dedicated EMR on EC2 clusters, with monitoring and debugging capabilities available in the EMR console.
An interactive session provides a persistent Spark context that spans across cells and scripts, enabling the blending of local Python code execution with remote Spark operations. Spark Connect's client-server architecture decouples the application client from the Spark driver, allowing you to maintain your preferred development environment and tooling while Spark infrastructure runs on the cluster.
This architecture supports workflows including ad hoc data exploration, iterative step-by-step debugging, and incremental PySpark job development before deploying to production. For observability, you get real-time session monitoring via the Spark UI, history tracking through the Spark History Server, and session management from the EMR console or API/CLI/SDK.
What to do
- Visit the Interactive sessions with Spark Connect guide.
- Check out the Amazon SageMaker Unified Studio Getting Started guide.
Source: AWS release notes
If you need further guidance on AWS, our experts are available at AWS@westloop.io. You may also reach us by submitting the Contact Us form.



