I am running a Spark job locally. In my code, I am creating an AmazonS3 client. I am using a recent version of aws-java-sdk
and spark
.
When I package my code with its dependencies and pass it to Spark submit utility, I get the following error.
Exception in thread "main" java.lang.NoSuchMethodError: com.amazonaws.services.s3.AmazonS3Client.builder()
I tried different online sources and could not get rid of the error. I even tried contacting the aws support, they asked me to add it to the spark-submit --packages. I tried that, still no luck.