Skip to content
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

py4j.Py4JException: Constructor com.databricks.libraries.JavaJarId([class java.net.URI, class java.lang.String, class java.lang.String] #430

Open
AbishekS01 opened this issue Aug 28, 2023 · 3 comments

Comments

@AbishekS01
Copy link

https://databrickslabs.github.io/mosaic/#project-support

which says that Mosaic should still work on "Photon enabled" clusters.

We are currently running several Mosaic jobs on Photon-enabled clusters, but after an upgrade to runtime 13.3, we got an error:

py4j.Py4JException: Constructor com.databricks.libraries.JavaJarId([class java.net.URI, class java.lang.String, class java.lang.String])

I will be downgrading the cluster back to 13.2 to see if that fixes it in the short term, but I would like guidance on how to use mosaic GEO features (most importantly st_geomfromgeojson and st_intersects, etc).

@landlord-matt
Copy link

landlord-matt commented Sep 4, 2023

We got the same error running mosaic==0.3.5 on runtime version 13.3 on a Personal Compute. This used to work on 12.2 LTS. Upgrading to mosaic==0.3.11 does not make any difference. Not that I think it matters, but we're running Databricks in Azure.

enable_mosaic(spark, dbutils)

MosaicLibraryHandler(config.mosaic_spark)

     71 converters = self.sc._jvm.scala.collection.JavaConverters
     73 JarURI = JavaURI.create("file:" + self._jar_path)
---> 74 lib = JavaJarId(
     75     JarURI,
     76     ManagedLibraryId.defaultOrganization(),
     77     NoVersionModule.simpleString(),
     78 )
py4j.Py4JException: Constructor com.databricks.libraries.JavaJarId([class java.net.URI, class java.lang.String, class java.lang.String]) does not exist
	at py4j.reflection.ReflectionEngine.getConstructor(ReflectionEngine.java:203)
	at py4j.reflection.ReflectionEngine.getConstructor(ReflectionEngine.java:220)
	at py4j.Gateway.invoke(Gateway.java:255)
	at py4j.commands.ConstructorCommand.invokeConstructor(ConstructorCommand.java:80)
	at py4j.commands.ConstructorCommand.execute(ConstructorCommand.java:69)
	at py4j.ClientServerConnection.waitForCommands(ClientServerConnection.java:195)
	at py4j.ClientServerConnection.run(ClientServerConnection.java:115)
	at java.lang.Thread.run(Thread.java:750)

@landlord-matt
Copy link

I realise now that it says that Databricks Runtime 13 isn't supported until mosaic version 0.4 in the README. That was added on June 13, almost 3 months ago. It seems the project stalled as 13.3 is now the current LTS?

@landlord-matt
Copy link

They now answered in this thread that they will fix this by the end of October 2023.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants