I am trying to execute spark-submit in a java which also has some HAPI-FHIR libraried needed in the project. When I execute the job I get the following error
Error: Failed to load package.MainClass: org/hl7/fhir/instance/model/api/IAnyResource
I have already included the FHIR dependencies in pom.xml as shown
FHIR release : R4
HAPI FHIR version is : 5.4.2
PS : I am running it on an ec2 instance