Hello @Yuntao ,
In Azure Synapse Analytics, you can use the Synapse notebook activity to pass in the jar.
- Upload your jar to the workspace default ADLS gen2 account
- Then use %%configure in your notebook cell.
To specify session-scoped Java or Scala packages, you can use the %%configure option:
%%configure -f
{
"conf": {
"spark.jars": "abfss://<<file system>>@<<storage account>.dfs.core.windows.net/<<path to JAR file>>",
}
}
For more details, refer to Azure Synapse Analytics - Session-scoped libraries.
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