cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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
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
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".

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.