Apache Beam 2.12.0 是否支持 Java 11? [英] Apache Beam 2.12.0 with Java 11 support?

查看:19
本文介绍了Apache Beam 2.12.0 是否支持 Java 11?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apache Beam 2.12.0 是否支持 Java 11,或者我现在应该继续使用稳定的 Java 8 SDK?

Does Apache Beam 2.12.0 support Java 11, or should i go still stick with a stable Java 8 SDK as for now?

我看到该网站根据文档推荐使用 Python 3.5 和 Beam 2.12.0,与其他更高的 Python 版本相比.这个时候它和 Java 11 有多少可比性.因此,与 Apache Beam 2.12.0 一起使用的稳定版本仍然是 Java 8.在 Java 11 中使用 Beam 2.12.0 时,我遇到的构建问题很少.

I see the site recommends Python 3.5 with Beam 2.12.0 as per the documentation, compared to other higher Python versions. How much compartible it is with Java 11 at this time. So, would a stable version would be still Java 8 to go with Apache Beam 2.12.0. I faced few build issues when using Beam 2.12.0 with Java 11.

推荐答案

UPDATE:在 2.29.0 版本中引入了 Beam 与 Java 11 的兼容性发布于2021-04-27.

UPDATE: Beam compatibility with Java 11 is introduced in version 2.29.0 released on 2021-04-27.

原答案:

Beam 正式不支持 Java 11,它只有从 2.12 版开始的实验性支持.所有工件均使用 Java 8 构建,但您可以尝试针对它们构建和运行 Java 11 代码,不过,由于工作仍在进行中,因此无法保证这一点.阻碍之一是后端仍然不支持 Java 11.因此,目前建议在生产用例中坚持使用 Java 8.

Beam officially doesn't support Java 11, it has only experimental support starting from release 2.12. All artifacts are built with Java 8 but you can try to build and run your Java 11 code against them, though, there is no guarantee about that since work still in progress. One of the stoppers is that backends still don't not support Java 11. So, it's recommended to stick with Java 8 for production use cases for the moment.

作为参考,最近在dev@上有详细的讨论:Java 11 兼容性问题,并且存在跟踪进度的 Jira 问题:BEAM-2530.因此,请随时报告您在 Java 11 中遇到的问题.

For the reference, it was detailed discussion about that recently on dev@: Java 11 compatibility question, and there is a Jira issue where the progress is tracked: BEAM-2530. So, feel free to report the issues that you had with Java 11.

这篇关于Apache Beam 2.12.0 是否支持 Java 11?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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