sbt build failed for spark scala with xgboost

后端 未结 2 1470
不知归路
不知归路 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:07

    I think the dependencies should be changed to:

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

    Also make sure your sbt is looking at the local maven repo. These were the two things that I needed to fix to make it work. Also make sure the jar files exist in the m2 repo. This is assuming you used mvn install to build the jvm packages.

    0 讨论(0)
  • 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"
    
    0 讨论(0)
提交回复
热议问题