-
Notifications
You must be signed in to change notification settings - Fork 56
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
Failed to run on Google cloud dataflow when built with Java 10 #25
Comments
got the same error, any suggestions? |
If you read the title, you'd know Java 10 is causing the Current ClassLoader error. My solution was to downgrade to Java 8 on the build computer, usually your local development Linux or Mac OS. Google cloud dataflow supports only Java 8. Code built with Java 10 hits errors like this. The steps I took was uninstall Java 10 and all Java JDK, runtime. Make sure nothing Java is left on the build computer; Then install Java 8 latest version. |
That seems an issue with Google Dataflow SDK. Maybe open a issue here: https://github.com/GoogleCloudPlatform/DataflowJavaSDK/issues/ ? |
Closing this as Beam SDK does not yet support JDK 9/10/11. Once a Beam SDK version with JDK 11 support is available, DBeam will be upgraded to that version. See the following for more details: |
I can't figure out how to run DBeam in Google cloud dataflow. I digged SCIO's doc and tried to run DBeam with Google cloud dataflow's runner in sbt shell. I had to add the following line to build.sbt:
"org.apache.beam" % "beam-runners-google-cloud-dataflow-java" % beamVersion,
under libraryDependencies ++= Seq( but still got the errors:
The error was Current ClassLoader is 'jdk.internal.loader.ClassLoaders$AppClassLoader@4b9af9a9' only URLClassLoaders are supported
Changing --runner to DirectRunner succeeded:
The text was updated successfully, but these errors were encountered: