SRN
SRN

Reputation: 493

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

Upvotes: 3

Views: 9080

Answers (1)

Iraj Hedayati
Iraj Hedayati

Reputation: 1677

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.

Upvotes: 4

Related Questions