rapidsai / spark-examples

[ARCHIVED] Moved to github.com/NVIDIA/spark-xgboost-examples
https://github.com/NVIDIA/spark-xgboost-examples
Apache License 2.0
70 stars 40 forks source link

Could not resolve dependencies - Error while building XGBoost Scala Example #81

Closed srinivas-varadharajan closed 4 years ago

srinivas-varadharajan commented 4 years ago

Hi,

I'm trying to run XGBoost4J-Spark on Kubernetes and I'm following the getting started documentation.

I run into the below error when I try to build the sample scala jars.

Error: [ERROR] Failed to execute goal on project sample_xgboost_apps: Could not resolve dependencies for project ai.rapids:sample_xgboost_apps:jar:0.1.5: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specified path /usr/lib/jvm/java-11-openjdk-amd64/../lib/tools.jar -> [Help 1]

Steps followed: Follow these steps to build the Scala jars (Here take CUDA 10.0 as an example):

git clone https://github.com/rapidsai/spark-examples.git cd spark-examples/examples/apps/scala mvn package -Dcuda.classifier=cuda10

srinivas-varadharajan commented 4 years ago

Installing the specific version of JDK fixes the issue.

apt-get update && apt-get install -y --no-install-recommends openjdk-8-jdk openjdk-8-jre

Result: [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:09 min [INFO] Finished at: 2020-04-30T18:38:37-05:00 [INFO] ------------------------------------------------------------------------