在amazon s3存储上传文件时出错:java.lang.NoSuchFieldError:INSTANCE

时间:2018-01-02 09:10:28

标签: java hadoop cloud

在亚马逊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)

0 个答案:

没有答案