New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dataflow does not run with Java 11 #3376
Comments
Perhaps more important is that the new projects should be generated with a Java 8 execution environment. |
From the stack trace I suspect that's a dataflow/Beam issue whether Eclipse is in the picture or not. Is there somewhere we are not setting a java 8 execution environment on new dataflow projects or even more surprisingly setting Java 11? If so, yes, that's something we can and should fix here. |
Lines 169 to 174 in 0a5d729
I think this should be handled by the Dataflow archteype: if it's specific to Java 8, it should configure the project to suit. |
Makes sense. Yes, we should fix this. Do you think it's worth a new cut or should it wait for 1.8.1? |
Looking a bit deeper, I don't think there's anything we can do. The generated example is actually configured for Java 7: <build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins> This situation arose as I only have a Java 11 JRE available. There's nothing to indicate that Dataflow uses I think we can only document this restriction in the release notes? |
The workaround: Install a different JRE for JavaSE-1.7
Configure the Project for JavaSE-1.7m2eclipse should have bound the project to the JavaSE-1.7 execution environment. The previous step should have caused Dataflow projects to use the Java 7 or Java 8 JRE. To verify:
Launch ConfigurationsThe Dataflow Pipeline launch configurations are normally configured to use the project's execution environment and so the launch configurations should have been updated to. To verify:
|
I have just to follow these steps but unfortunately I'm getting the error: |
Could you try a Project > Clean? I thought changing the JRE should have triggered a recompile. |
Attempting to run a generated Dataflow app on Java 11 fails:
The text was updated successfully, but these errors were encountered: