Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.lang.ClassNotFoundException: com.amazonaws.AmazonClientException

am trying to read file from S3 in spark-shell. But am getting the below error.

Caused by: java.lang.ClassNotFoundException: com.amazonaws.AmazonClientException

I have copied aws-java-sdk-1.11.106.jar, hadoop-aws-2.8.0.jar into jars folder. Could you please let me know how to resolve this.

Thanks

like image 842
Subba Avatar asked Nov 01 '25 14:11

Subba


1 Answers

The com.amazonaws.AmazonClientException is in aws-java-sdk-core-*.jar library. BTW, be careful as it would be your first problem. Normally, the code is looking for AmazonClientException whenever there is an error.

like image 90
Iraj Hedayati Avatar answered Nov 03 '25 05:11

Iraj Hedayati



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!