Google Dataflow Beam 作业中的 SSL 握手异常 [英] SSL Handshake Exception in Google Dataflow Beam Job

查看:28
本文介绍了Google Dataflow Beam 作业中的 SSL 握手异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用 Okhttp3 从 Dataflow 作业请求(获取和发布)HTTPS url 时,程序抛出 SSL 握手异常并失败.确切消息是javax.net.ssl.SSLHandshakeException:收到致命警报:handshake_failure"

While using Okhttp3 to request(get and post) HTTPS urls from Dataflow jobs, the program is throwing SSL handshake Exception and failing. Exact message is "javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure"

同样的代码早在 3-4 周(11 月 23 日之前)就可以在 Dataflow 中使用了.现在它因上述异常而失败.由于服务器(HTTPS URL 提供程序)中的某些更改,会出现此问题吗?或者这与我的数据流/光束设置有关.

The same code was working earlier like 3-4 weeks(Before Nov-23) back in Dataflow. Now it's failing with the above exception. Will this be an issue arrise because of some changes in the server (HTTPS URL provider) ? Or is it something to do with the my dataflow/beam setup.

SDK 和 lib 版本 -

SDK and lib versions -

Apache Beam SDK for Java 2.16.0
com.squareup.okhttp3:okhttp:4.2.2

Apache Beam SDK for Java 2.16.0
com.squareup.okhttp3:okhttp:4.2.2

推荐答案

看起来您的服务器的 SSL 配置发生了变化.试试这个网站,确认您的服务器和设备兼容.

Looks like a change in the SSL configuration of your server. Try this site to confirm your server and device are compatible.

https://www.ssllabs.com/ssltest/

这篇关于Google Dataflow Beam 作业中的 SSL 握手异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆