Yes, if you look at the DataflowRunner code [1], if you set a system property 'java.specification.version' to 11, the runner will automatically pull java11 enabled worker harness.
[1] https://github.com/apache/beam/blob/5fc6bf673af077249d683f59533ef651089d7ae8/runners/google-cloud-dataflow-java/src/main/java/org/apache/beam/runners/dataflow/DataflowRunner.java#L1807 On Wed, Apr 10, 2019 at 9:56 AM Gleb Kanterov <g...@spotify.com> wrote: > Is there a way to try JDK11 harness for Dataflow without building own > docker image? > > On Wed, Apr 10, 2019 at 2:10 AM Yi Pan <nickpa...@gmail.com> wrote: > >> Hi, Pablo, >> >> Thanks for the clarification. Does that mean that there needs to be a >> separate effort to ensure KafkaIO to be Java 8 source compat and Java 11 >> runtime compat? >> >> -Yi >> >> On Tue, Apr 9, 2019 at 5:03 PM Pablo Estrada <pabl...@google.com> wrote: >> >>> Our work (mostly done by Michal), consisted on testing that Beam >>> artifacts built with Java 8 can run in a Java 11 environment in the >>> DirectRunner and Dataflow. We have not planned other work in this area. >>> >>> On Tue, Apr 9, 2019 at 3:00 PM Ahmet Altay <al...@google.com> wrote: >>> >>>> Most recently +Pablo Estrada <pabl...@google.com> and +Michał Walenia >>>> <michal.wale...@polidea.com> were working on Java 11 related JIRAs. >>>> They may have more context. >>>> >>>> On Tue, Apr 9, 2019 at 1:22 PM Maximilian Michels <m...@apache.org> >>>> wrote: >>>> >>>>> Hi Yi, >>>>> >>>>> That's a great question. Beam is still on Java 8 at the moment. There >>>>> is >>>>> a JIRA issue for making Beam compatible with Java 11: >>>>> https://issues.apache.org/jira/browse/BEAM-2530 >>>>> >>>>> As you can read in the issue, the upcoming Beam 2.12.0 has >>>>> experimental >>>>> support for Java 11. That said, there is still code that needs a major >>>>> overhaul, e.g. automatic staging of pipeline jars >>>>> (https://issues.apache.org/jira/browse/BEAM-5495). >>>>> >>>>> I hope we can achieve proper Java 11 compatibility in the next >>>>> releases. >>>>> Perhaps somebody else can give further insight into how much work is >>>>> left. >>>>> >>>>> Thanks, >>>>> Max >>>>> >>>>> On 09.04.19 22:07, Yi Pan wrote: >>>>> > Hi, everyone, >>>>> > >>>>> > I checked out the latest Beam code and seems that the document still >>>>> > says "JDK8". Is there any plan to officially support JDK11? >>>>> > >>>>> > Thanks a lot! >>>>> > >>>>> > -Yi >>>>> >>>> > > -- > Cheers, > Gleb > -- Michał Walenia Polidea <https://www.polidea.com/> | Software Engineer M: +48 791 432 002 <+48791432002> E: michal.wale...@polidea.com We create human & business stories through technology. Check out our projects! <https://www.polidea.com/our-work>