Closed apoorvaguru09 closed 2 years ago
Hi @apoorvaguru09 thank you for reaching out to us via this GitHub issue; @billwert could you please follow up with @apoorvaguru09?
@alzimmermsft @lmolkova Hey friends - can you help us out here? I suspect this is an issue with ambient state in Spark but I'm not sure how to go about diagnosing or fixing it. @apoorvaguru09 has tried making a fat JAR which seems to have not helped.
Thanks Bill for looking into it, as per suggestion I also tried using the azure-sdk BOM but getting same error. Let me know I can share another Sample Helloworld code in case you want to repro?
@apoorvaguru09 and I worked offline to get the Jackson libraries properly shaded for the Spark environment.
Thanks a lot Bill!
Describe the bug While using Azure-Identity in Scala code to be hosted in Azure HDI cluster, the application throws an error: java.lang.LinkageError: Package versions: jackson-annotations=2.4.4.4.1.8.29, jackson-core=2.4.4.4.1.8.29, jackson-databind=2.4.4.4.1.8.29, jackson-dataformat-xml=unknown, jackson-datatype-jsr310=unknown, com.shaded.azure-core=unknown, Troubleshooting version conflicts: https://aka.ms/azsdk/java/dependency/troubleshoot Even though the correct Jackson.* versions have been pinned to 2.13.2 in the POM xml, the older version: 2.4.4.. is being loaded it seems.
Exception or Stack Trace
To Reproduce Steps to reproduce the behavior:
Scala code:
Code Snippet Code snippet: Provided in above step#2
Expected behavior A clear and concise description of what you expected to happen. Expectation was to successfully run through the code to try fetch the keyvault key or in worst case : give authorization error due to MSI not having permission,
Screenshots
Setup (please complete the following information):
If you suspect a dependency version mismatch (e.g. you see
NoClassDefFoundError
,NoSuchMethodError
or similar), please check out Troubleshoot dependency version conflict article first. If it doesn't provide solution for the problem, please provide:mvn dependency:tree -Dverbose
)Additional context Add any other context about the problem here.
Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report