title | description | ms.reviewer | ms.author | author | ms.topic | ms.custom | ms.date | |||
---|---|---|---|---|---|---|---|---|---|---|
Migrate Spark libraries |
Learn about migrating Spark libraries from Azure Synapse Spark to Fabric, including migration prerequisites and options. |
snehagunda |
aimurg |
murggu |
how-to |
|
11/15/2023 |
Azure Synapse Spark pool offers different feed and custom library options. In Fabric, each runtime comes with a preinstalled set of libraries (built-in libraries). However, based on your scenarios and specific needs, you can also include other libraries using environment libraries and inline libraries. To move Azure Synapse Spark pool libraries to Fabric, use environment libraries.
For Spark library considerations, refer to differences between Azure Synapse Spark and Fabric.
- If you don’t have one already, create a Fabric workspace in your tenant.
- If you don’t have one already, create an Environment in your workspace.
You can move Spark pool libraries to an environment as follows:
- Open Synapse Studio: Sign-in into Azure. Navigate to your Azure Synapse workspace and open the Synapse Studio.
- Locate Spark libraries:
- Go to Manage area and select on Apache Spark pools.
- Find the Apache Spark pool, select Packages and locate the Spark libraries for the pool.
- Get Spark libraries: Locate the requirements.txt, environment.yml, or workspace packages installed in the pool. Get the list of installed libraries on the pool.
- Once you have Spark libraries, add custom Spark libraries to an environment in Fabric. Within your Environment, go to Libraries and add libraries:
- From Public Libraries, you can upload a .yml file. You can also install libraries using PyPI and Conda.
- From Custom Libraries, you can install libraries by using .jar/.whl/.tar.gz files.
- Click on Save and Publish changes.
:::image type="content" source="media\migrate-synapse\migrate-spark-libraries.png" alt-text="Screenshot showing Spark libraries.":::
Learn more on adding Spark libraries to an Environment.
Note
Note that library installation may take some time.