cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to integrate java 11 code in Databricks

data_serf
New Contributor

Hi all,

We're trying to attach java libraries which are compiled/packaged using Java 11.

After doing some research it looks like even the most recent runtimes use Java 8 which can't run the Java 11 code ("wrong version 55.0, should be 52.0" errors)

Is there some way to work around this? Perhaps wrapping the java 11 lib code in Scala (which seems to be on a much more modern runtime?)

Also, in a longer term, is there anything on the roadmap for supporting a more modern version of Java?

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions

alexott
Valued Contributor II

There is an experimental support for Java 11 starting with DBR 10.0 (release notes) - to activate it you need to put into environment variables configuration following value.

JNAME=zulu11-ca-amd64

View solution in original post

3 REPLIES 3

alexott
Valued Contributor II

There is an experimental support for Java 11 starting with DBR 10.0 (release notes) - to activate it you need to put into environment variables configuration following value.

JNAME=zulu11-ca-amd64

Vidula
Honored Contributor

Hi there @Andy Xue​ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

matthewrj
New Contributor II

I have tried setting JNAME=zulu11-ca-amd64 under Cluster > Advanced options > Spark > Environment variables but it doesn't seem to work. I still get errors indicating Java 8 is the JRE and in the Spark UI under "Environment" I still see:

Java Home: /usr/lib/jvm/zulu8-ca-amd64/jre

Java Version: 1.8.0_302 (Azul Systems, Inc.)

I am using cluster version "11.2.x-scala2.12".

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group