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: 

JavaPackage' object is not callable :: Mlean

Seenu45
New Contributor II

Hi Folks,

We are working on production Databricks project using Mleap.

when run below code on databricks, it throws error like " 'JavaPackage' object is not callable"

code :

import mleap.pyspark from mleap.pyspark.spark_support import SimpleSparkSerializer model.serializeToBundle("jar:file:/databricks/mleap_python_model_export/20news_pipeline-json.zip", sparkTransformed)

Error:

TypeError: 'JavaPackage' object is not callable

Please help me with this.

Thanks

Srinivas

1 ACCEPTED SOLUTION

Accepted Solutions

shyam_9
Databricks Employee
Databricks Employee

Hi @Seenu45​ ,

Please go through this GitHub issue, it is also same issue,

https://github.com/combust/mleap/issues/172

View solution in original post

3 REPLIES 3

shyam_9
Databricks Employee
Databricks Employee

Hi @Seenu45​ ,

Please go through this GitHub issue, it is also same issue,

https://github.com/combust/mleap/issues/172

Seenu45
New Contributor II

Thanks syamspr. it is working now.

LishuaiJ
New Contributor II

How did you solve it? It seems the link did not provide any good answers.

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