cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
cancel
Showing results for 
Search instead for 
Did you mean: 

Failure in mlflow.spark.load_model : Random Forrest pretrained model

ashrafkhan94
New Contributor II
model = mlflow.spark.load_model(model_uri=f"models:/{model_name}/{model_version}")

Log:

An error occurred while calling o2861.load.

: org.apache.spark.SparkException: Job aborted due to stage failure: Task 4 in stage 4599.0 failed 4 times, most recent failure: Lost task 4.3 in stage 4599.0 (TID 3270) (10.139.64.5 executor 1): java.lang.AssertionError: assertion failed: Decision Tree load failed. Expected largest node ID to be 53, but found 26

1 ACCEPTED SOLUTION

Accepted Solutions

sean_owen
Honored Contributor II
Honored Contributor II

Hm. Are you training with one version of Spark but loading in another version? though that should be pretty compatible across versions, just trying to rule that in/out.

View solution in original post

2 REPLIES 2

sean_owen
Honored Contributor II
Honored Contributor II

Hm. Are you training with one version of Spark but loading in another version? though that should be pretty compatible across versions, just trying to rule that in/out.

Noopur_Nigam
Valued Contributor II
Valued Contributor II

Hi @Ashraf Khan​ Did you get a chance to look into Sean's response. Please let us know if you need more help on this.

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.