Open malladip-ibm opened 6 years ago
@malladip-ibm not sure i fully follow the entire flow .The exception shows that it's not Stocator being used, but something else or some old Stocator package or some local modification. Stocator has maven shade packages, while your log trace shows regular com.amazonaws.* packages. @bassel-zeidan
Hi @malladip-ibm, which version of spark are you using? is it 1.6? if so, Spark1.6 is not supported by the underlying SDK. Please try it with Spark2.0 or later versions. And please check that you got the right jars as Gil recommended.
This issue is not related to ibmos2spark lib.
I am getting a NoSuchMethodError even though I have
in the path at the top. I know this is the conflict of classpaths, but cannot figure out where the conflict is
[task-result-getter-0] WARN org.apache.spark.scheduler.TaskSetManager - Lost task 1.0 in stage 0.0 (TID 1, hdfsu10.almaden.ibm.com): java.lang.NoSuchMethodError: org.apache.http.conn.ssl.SSLConnectionSocketFactory.(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/HostnameVerifier;)V
at com.amazonaws.http.conn.ssl.SdkTLSSocketFactory.(SdkTLSSocketFactory.java:56)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.getPreferredSocketFactory(ApacheConnectionManagerFactory.java:92)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.create(ApacheConnectionManagerFactory.java:65)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.create(ApacheConnectionManagerFactory.java:58)
at com.amazonaws.http.apache.client.impl.ApacheHttpClientFactory.create(ApacheHttpClientFactory.java:50)
at com.amazonaws.http.apache.client.impl.ApacheHttpClientFactory.create(ApacheHttpClientFactory.java:38)
at com.amazonaws.http.AmazonHttpClient.(AmazonHttpClient.java:315)
at com.amazonaws.http.AmazonHttpClient.(AmazonHttpClient.java:299)
at com.amazonaws.AmazonWebServiceClient.(AmazonWebServiceClient.java:164)
at com.amazonaws.services.s3.AmazonS3Client.(AmazonS3Client.java:570)
at com.amazonaws.services.s3.AmazonS3Client.(AmazonS3Client.java:550)
Here is my code snippet def main(args: Array[String]) {
}