flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörn Franke <jornfra...@gmail.com>
Subject Re: MapR libraries shading issue
Date Mon, 26 Jun 2017 15:16:49 GMT
The error that you mentioned seem to indicate that some certificates of certification authorities
could not be found. You may want to add them to the trust store of the application.

> On 26. Jun 2017, at 16:55, ani.desh1512 <ani.desh1512@gmail.com> wrote:
> 
> As Stephan pointed out, this seems more like a MapR libs meddling with some
> jar. As I had mentioned in the original question, I run across the same
> problem when i use the aws sdk jar in my program. The error is as follows:
> 
> /shaded.com.amazonaws.SdkClientException: Unable to execute HTTP request:
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target
>        at
> shaded.com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleRetryableException(AmazonHttpClient.java:1069)
>        at
> shaded.com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1035)
>        at
> shaded.com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:742)
>        at
> shaded.com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:716)
>        at
> shaded.com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:699)
>        at
> shaded.com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:667)
>        at
> shaded.com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:649)
>        at
> shaded.com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:513)
>        at
> shaded.com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4169)
>        at
> shaded.com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4116)
>        at
> shaded.com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:1365)
>        at
> com.kabbage.common.S3Utility.readContentFromFilePath(S3Utility.java:32)
>        at com.kabbage.s3Importer.StreamReader$2.map(StreamReader.java:77)
>        at com.kabbage.s3Importer.StreamReader$2.map(StreamReader.java:68)
>        at
> org.apache.flink.streaming.api.operators.StreamMap.processElement(StreamMap.java:41)
>        at
> org.apache.flink.streaming.runtime.io.StreamInputProcessor.processInput(StreamInputProcessor.java:206)
>        at
> org.apache.flink.streaming.runtime.tasks.OneInputStreamTask.run(OneInputStreamTask.java:69)
>        at
> org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:262)
>        at org.apache.flink.runtime.taskmanager.Task.run(Task.java:702)
>        at java.lang.Thread.run(Thread.java:748)
> Caused by: javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target
>        at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
>        at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
>        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
>        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
>        at
> sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1514)
>        at
> sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
>        at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
>        at sun.security.ssl.Handshaker.process_record(Handshaker.java:961)
>        at
> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
>        at
> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
>        at
> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
>        at
> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
>        at
> shaded.org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394)
>        at
> shaded.org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353)
>        at
> shaded.com.amazonaws.http.conn.ssl.SdkTLSSocketFactory.connectSocket(SdkTLSSocketFactory.java:132)
>        at
> shaded.org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:141)
>        at
> shaded.org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)/
> 
> This error also disappears when I remove MapR libs from Flink classpath. But
> removing MapR libs from classpath means I CANNOT use maprfs for storing
> flink checkpoints and recovery.
> 
> I have also asked this question on the MapR community.
> https://community.mapr.com/message/60591-flink-with-mapr-shading-issues
> <https://community.mapr.com/message/60591-flink-with-mapr-shading-issues>  
> 
> 
> 
> --
> View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/MapR-libraries-shading-issue-tp13988p14001.html
> Sent from the Apache Flink User Mailing List archive. mailing list archive at Nabble.com.

Mime
View raw message