Open 00-Luoshu opened 2 years ago
Lack of BigDL jar files in your script, JavaPackage
happens because python
cannot find the java class.
spark-submit
/home/intel/spark-3.1.2-bin-hadoop2.7/bin/spark-submit \
--master "local[4]" \
--driver-memory 2g \
--executor-memory 2g \
--jars /path/to/bigdl-dllib-spark_${SPARK_VERSION}-jar-with-dependencies.jar \
local:///home/zhangyu/BigDL/python/dllib/examples/nnframes/xgboost/xgboost_example.py --file-path data/Boston_Housing.csv
spark-submit-with-bigdl
Submit following the script below:
/home/zhangyu/BigDL/scripts/spark-submit-with-bigdl \
--master ${MASTER} \
--driver-memory 2g \
--executor-memory 2g \
local:///home/zhangyu/BigDL/python/dllib/examples/nnframes/xgboost/xgboost_example.py --file-path data/Boston_Housing.csv
NOTE:
Boston_Housing.csv
instead of sample.csv
.
env:
The doc and code comes from https://github.com/intel-analytics/BigDL/tree/main/python/dllib/examples/nnframes/xgboost https://github.com/intel-analytics/BigDL/blob/main/python/dllib/examples/nnframes/xgboost/xgboost_example.py
My spark-submit command:
And error message