Hello @Michael Urinovsky ,
Thanks for the question and using MS Q&A platform.
Unfortunately, Azure Synapse Analytics - Spark Pool do not support sharing clusters with multiple users for interactive use cases.
Just to demo, I had created a two notebooks named
Logging_Copy1 and tried to run both notebooks. As you observe it creates a single Apache Spark application to run the single notebook. If you are trying to run two notebooks on the same cluster - it will create two spark application which runs the notebooks seperately.
Reason: Azure Synapse provides purpose-built engines for specific use cases. Apache Spark for Synapse is designed as a job service and not a cluster model. There are two scenarios where people ask for a multi-user cluster model.
Scenario #1: Many users accessing a cluster for serving data for BI purposes.
The easiest way of accomplishing this task is to cook the data with Spark and then take advantage of the serving capabilities of Synapse SQL to that they can connect Power BI to those datasets.
Scenario #2: Having multiple developers on a single cluster to save money.
To satisfy this scenario, you should give each developer a serverless Spark pool that is set to use a small number of Spark resources. Since serverless Spark pools don’t cost anything, until they are actively used minimizes the cost when there are multiple developers. The pools share metadata (Spark tables) so they can easily work with each other.
Spark instances are created when you connect to a Spark pool, create a session, and run a job. As multiple users may have access to a single Spark pool, a new Spark instance is created for each user that connects.
For more details, refer to Azure Synapse Analytics frequently asked questions and Apache Spark in Azure Synapse Analytics Core Concepts - Examples.
Hope this will help. Please let us know if any further queries.
- Please don't forget to click on or upvote button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators