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:ย 

Error using Synapse ML: JavaPackage object is not callable

VM
Contributor

I am using DBR version 10.1. I want to use Synapse ML package. I am able to install and import it by following instructions on the link: https://github.com/microsoft/SynapseML. However when I try to run the code it gives me the error shown in the attached screenshot. Would you have any idea how to solve this issue if one doesn't have admin privileges'? Thanks

4 REPLIES 4

User16764241763
Honored Contributor

Hello @Vikram Mahawalโ€‹ 

Thank you for posting to the Databricks community.

The error is documented here

https://github.com/microsoft/SynapseML/issues/1296

It seems like it cannot find the jar files to load the classes

Can you try installing the below maven library on the cluster and retry?

com.microsoft.azure:synapseml_2.12:0.9.5

VM
Contributor

Hi @Arvind Ravishโ€‹ , Thank you for the reply. However, I am unable to install the maven library com.microsoft.azure:synapseml_2.12:0.9.5 on the cluster or workspace. The options to install are greyed out as can be seen from the attached screenshot.

Also FYI, I get the 'JavaPackage object is not callable' error shown in the previous screenshot when I try to run the code on the link: https://microsoft.github.io/SynapseML/docs/features/lightgbm/LightGBM%20-%20Overview/

Is it something that the administrator of the cluster would be able to do?

VM
Contributor

Hi @Kaniz Fatmaโ€‹ ,

Just FYI. I had faced this issue some time back and this has still not been solved.

Not sure if the whitelisting issue and this issue are related.

Thank you,

User16764241763
Honored Contributor

Hello @Vikram Mahawalโ€‹ 

Clusters need to be in the running state to install/uninstall the libraries. Could you please start the cluster and try installing it.

If you are still stuck, please file a support case with us, so we can take a look.

Thanks

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