问题描述
我正在从 EC2 机器在 AWS athena 中运行一个非常大的查询。我已经使用较小的数据集在本地测试了我的代码,没有任何问题。该代码与 aws example code on github 非常相似。我已将查询配额增加到合适的持续时间,所以我不相信这是典型的超时,我也希望有不同的错误消息(也许是超时?)。我还确保在我的 ec2 机器上配置了 TLSv1.2 和 SSLv3。有什么想法吗?
com.amazonaws.SdkClientException: Unable to execute HTTP request: Connection has been shutdown: javax.net.ssl.SSLException: SSL peer shut down incorrectly
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleRetryableException(AmazonHttpClient.java:1207)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1153)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:802)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:770)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:744)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:704)
at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:686)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:550)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:530)
at com.amazonaws.services.athena.AmazonAthenaClient.doInvoke(AmazonAthenaClient.java:2377)
at com.amazonaws.services.athena.AmazonAthenaClient.invoke(AmazonAthenaClient.java:2344)
at com.amazonaws.services.athena.AmazonAthenaClient.invoke(AmazonAthenaClient.java:2333)
at com.amazonaws.services.athena.AmazonAthenaClient.executeGetQueryResults(AmazonAthenaClient.java:1159)
at com.amazonaws.services.athena.AmazonAthenaClient.getQueryResults(AmazonAthenaClient.java:1128)
at org.myproject.di.AthenaInput.processResultRows(AthenaInput.java:113)
at org.myproject.di.AthenaInput.processRow(AthenaInput.java:74)
at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
at java.lang.Thread.run(Thread.java:748)
Caused by: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: SSL peer shut down incorrectly
at sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1533)
at sun.security.ssl.AppInputStream.read(AppInputStream.java:95)
at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137)
at org.apache.http.impl.io.SessionInputBufferImpl.read(SessionInputBufferImpl.java:197)
at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:176)
at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:198)
at org.apache.http.impl.io.ContentLengthInputStream.close(ContentLengthInputStream.java:101)
at org.apache.http.entity.Basichttpentity.writeto(Basichttpentity.java:120)
at org.apache.http.impl.execchain.ResponseEntityProxy.writeto(ResponseEntityProxy.java:99)
at org.apache.http.entity.Bufferedhttpentity.<init>(Bufferedhttpentity.java:62)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeOneRequest(AmazonHttpClient.java:1338)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1145)
... 16 more
Caused by: javax.net.ssl.SSLException: SSL peer shut down incorrectly
at sun.security.ssl.InputRecord.readV3Record(InputRecord.java:596)
at sun.security.ssl.InputRecord.read(InputRecord.java:532)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:975)
at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:933)
at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137)
at org.apache.http.impl.io.SessionInputBufferImpl.read(SessionInputBufferImpl.java:197)
at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:176)
at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:198)
at org.apache.http.entity.Basichttpentity.writeto(Basichttpentity.java:116)
... 20 more
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)