How can I use MSSparkUtils in Scala from Intelij?

Madeline Stager 31 Reputation points
2021-11-02T01:00:06.403+00:00

I found this documentation of MSSparkUtils which is available in Scala.

https://learn.microsoft.com/en-us/azure/synapse-analytics/spark/microsoft-spark-utilities?pivots=programming-language-scala#credentials-utilities

I'm trying to use the MSSparkUtils from a Scala script that is submit to synapse as a batch job. I'm updating the script from Intelij and can't compile since it can't find the reference for mssparkutils. Is there a package I can include so I can compile in Intelij while using mssparkutils?

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,380 questions
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA 90,661 Reputation points Moderator
    2021-11-03T03:48:49.32+00:00

    Hello @Madeline Stager ,

    Thanks for the question and using MS Q&A platform.

    You can download the mssparkutils package from below MVN repo and import the jar into your local project. With that, you should be able to compile the project successfully: https://mvnrepository.com/artifact/com.microsoft.azure.synapse/synapseutils

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png 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
    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.