XGBoost Model Trained on Spark 2.4 and migrate the trained on Spark 3.1.2

I train the XGBoost Model on spark 2.4, but When I try to use the same model on spark 3.1.2, it’s failing.
Please help me how to use the trained(Spark 2.4) model on the latest version of Spark 3.1.2+