Caused by: java.lang.ClassNotFoundException: org.jets3t.service.ServiceException

Question:

My code should access some file stored on S3 (this code works fine on one machine, while it fails on the other one; basically it fails when it gets executed locally (not on the cluster) from Intellij IDEA):

I get the following error at the line var df = sqlContext.read.json("s3n://myPath/*.json"):

I read similar threads regarding this issue and it was mentioned that in case of using Spark 1.6.2, the solution is to use org.apache.hadoop hadoop-aws 2.6.0. In my case it has not solved the problem.

My pom.xml (an extract from it):

Answer:

Adding the following in the dependency should solve the issue

I hope this helps

Leave a Reply