CodeData ScienceTechnology

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!



Leave a Reply

1 Comment threads
0 Thread replies
Most reacted comment
Hottest comment thread
1 Comment authors
Tatsunidas Recent comment authors

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

Notify of

Thank you so much!!!