aws-samples / aws-samples/emr-serverless-samples
providing extra jar file using --jars is not working for pyspark jobs
- Dominant language
- Python
- Stars
- 172
- Forks
- 84
- PR merge metrics
- No merged PRs in 30d
Description
Trying to pass a jar dependency file with spark submit as mentioned in the examples for pyspark jar is not working
`"sparkSubmitParameters": "--jars=s3:///spark-credentials-provider/idealo-spark-credentials-provider-1.3.0.jar",`
Also noticed that the jar doesn't end up on "spark.driver.extraClassPath" or "spark.executor.extraClassPath" even if it's downloaded from s3 into tmp folder
`Files s3:///spark-credentials-provider/idealo-spark-credentials-provider-1.3.0.jar from /tmp/spark-112c49ee-7811-43bf-82ee-587a2d188f19/idealo-spark-credentials-provider-1.3.0.jar to /home/hadoop/./idealo-spark-credentials-provider-1.3.0.jar
`
Tried the above with both EMR version 7.0.0 and 6.14.0
copying the jar to /usr/share/aws/emr/emrfs/auxlib/ with a Docker build worked.
Is this a known issue and is there any solution to fix this without using Docker ?
Contributor guide
Assessment
This issue has not been assessed yet.