Working with Custom jar in Azure
There is 2 Jars :
- Big Fat Jar or uber Jar (Contains main class )
- Build Dependency Jar/ Library to be used in Synapse
Big Fat Jar or uber Jar:
- Contains main class
- Contains all the Dependency
- Contains manifest File
- $ bazel build build_name_deploy.jar
- Can be run as : build_name_deploy.jar
- Eg: https://github.com/j-thepac/BazelTestProject
- Ref - https://docs.bazel.build/versions/main/be/java.html
Build Dependency Jar/ Library
- Does not Contain main class
- Does not contain dependencies
- Note : Download external dependencies from Maven and upload it separately (refer bewlo link)
- $ bazel build build_name.jar
Once u have jars Created based on ure need , use link - https://docs.microsoft.com/en-us/azure/synapse-analytics/spark/apache-spark-manage-scala-packages to upload to Azure