Build from source using Maven
Dependencies and requirements
- Linux or macOS. Windows support in progress.
- Python. 2.7 or 3.2+
- Maven 3.3.9+
- JDK 8. Newer versions of JDK are not supported yet.
- SWIG 4.0.2+
Building steps
-
Clone the repository:
git clone https://github.com/catboost/catboost.git
-
Go to the
catboost/catboost/spark/catboost4j-spark
directory from the local copy of the CatBoost repository. -
Run
python ./generate_projects/generate.py
to generate Maven projects for all supported Spark and Scala versions combinations. -
Go to the sub-directories
./projects/spark_<spark_compat_version>_<scala_compat_version>
forspark_compat_version
andscala_compat_version
you are interested in. -
Use the usual maven build phases in these directories.