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

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.