Install JVM xgboost package

Install JVM xgboost package

Install JVM xgboost package to interface to Apache Spark

For a complete guide and documentation, please refer to the official xgoost documentation.

Here, I’m just reporting a quick start to install xgboost under Linux platform to run it under spark environment as described in my previous post.

First of all you need to clone xgboost repository:

You need to have a recent gcc compiler to compile xgboost. I installed and used the redhat development tools and so I have gcc 5.3.1.

Now, move to your xgboost directory

and compile the project

If you want to have your python installation type:

Install jvm package

To install jvm package, move to the directory jvm-packages and compile and install the package with


You can access to your scala, python and java xgboost API.

Now you can try to run the code of this post

Spark and Xgboost

Happy sparking!



Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

1 Comment
Inline Feedbacks
View all comments
June 13, 2018 8:53 am

Thank you so much!!!

Would love your thoughts, please comment.x
%d bloggers like this: