sbt build failed for spark scala with xgboost

后端 未结 2 1472
不知归路
不知归路 2021-01-26 04:21

./build/sbt clean package gives the below error:

Resolving org.fusesource.jansi#jansi;1.4 ...
   [warn]   ::::::::::::::::::::::::::::::::::::::::::::::
   [warn         


        
2条回答
  •  [愿得一人]
    2021-01-26 05:25

    xgboost jars must be built locally and published to your local maven repository for your set up to work. The instructions for this is published here

    Also additionally the dependencies should be like below (the groupId is ml.dmlc)

    libraryDependencies += "ml.dmlc" %% "xgboost4j" % "0.7"
    libraryDependencies += "ml.dmlc" %% "xgboost4j-spark" % "0.7"
    

提交回复
热议问题