[jvm-package]XGBoostSpark: the job was aborted due to

version:1.5.1
23/08/31 12:33:09 INFO RabitTracker$TrackerProcessLogger: File “/data8/yarnenv/local/usercache/xxxxxx/appcache/application_1691486052043_10249977/container_e71_1691486052043_10249977_01_000795/tmp/tracker20069399715812878.py”, line 67
23/08/31 12:33:09 INFO RabitTracker$TrackerProcessLogger: assert magic == kMagic, f"invalid magic number={magic} from {self.host}"
23/08/31 12:33:09 INFO RabitTracker$TrackerProcessLogger: ^
23/08/31 12:33:09 INFO RabitTracker$TrackerProcessLogger: SyntaxError: invalid syntax
23/08/31 12:33:09 INFO RabitTracker$TrackerProcessLogger: Tracker Process ends with exit code 1

23/08/31 12:44:45 ERROR XGBoostSpark: the job was aborted due to
ml.dmlc.xgboost4j.java.XGBoostError: XGBoostModel training failed
at ml.dmlc.xgboost4j.scala.spark.XGBoost$.postTrackerReturnProcessing(XGBoost.scala:750)
at ml.dmlc.xgboost4j.scala.spark.XGBoost$.trainDistributed(XGBoost.scala:624)
at ml.dmlc.xgboost4j.scala.spark.XGBoostClassifier.train(XGBoostClassifier.scala:199)
at ml.dmlc.xgboost4j.scala.spark.XGBoostClassifier.train(XGBoostClassifier.scala:40)

Please make sure you have Python3 in your environment and is your default Python command.

python --version  # should be greater or equal to 3.8