Amazon web services 此工厂未使用火花流和AWS创建插座
我在使用spark streaming S3访问时遇到了此异常Amazon web services 此工厂未使用火花流和AWS创建插座,amazon-web-services,apache-spark,httpclient,Amazon Web Services,Apache Spark,Httpclient,我在使用spark streaming S3访问时遇到了此异常 java.lang.IllegalStateException: Socket not created by this factory at org.apache.http.util.Asserts.check(Asserts.java:34) at org.apache.http.conn.ssl.SSLSocketFactory.isSecure(SSLSocketFactory.java:435)... at com.amaz
java.lang.IllegalStateException: Socket not created by this factory
at org.apache.http.util.Asserts.check(Asserts.java:34)
at org.apache.http.conn.ssl.SSLSocketFactory.isSecure(SSLSocketFactory.java:435)...
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:310)...
at org.apache.hadoop.fs.s3a.S3AFileSystem.verifyBucketExists ...
我尝试了这些步骤(从其他线程,如或),但没有成功
- 对所有amazonaws和apache http JAR进行着色
- 将httpclient和httpcore显式升级到4.5.x
- 将AmazonSDK升级到1.11.x
- 将hadoop升级到3.1.x