在亚马逊s3上传文件时,我收到此错误消息。对于这个项目,我使用hadoop处理文件,然后将输出文件上传到cloud.Jars用于相同的是: aws-java-sdk1.11.80,hadoop 2.7.1,httpClient 4.4.4和其他必需的jar。
java.lang.NoSuchFieldError: INSTANCE
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<clinit>(SSLConnectionSocketFactory.java:144)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.getPreferredSocketFactory(ApacheConnectionManagerFactory.java:87)
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:51)
at com.amazonaws.http.apache.client.impl.ApacheHttpClientFactory.create(ApacheHttpClientFactory.java:39)
at com.amazonaws.http.AmazonHttpClient.<init>(AmazonHttpClient.java:319)
at com.amazonaws.http.AmazonHttpClient.<init>(AmazonHttpClient.java:303)
at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:164)
at com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:563)
at com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:543)
at com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:525)
at com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:497)
at com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:479)