Getting Started with MLeap
The MLeap runtime itself provides everything needed to execute and serialize entire ML pipelines. It does not include anything required for training ML pipelines. In order to start with MLeap, you will need to add it to your project.
Adding MLeap to Your Project
MLeap and its snapshots are hosted on Maven Central and so should be easily accessible via a maven build file or SBT. MLeap is currently compiled for Scala version 2.12. We try to maintain Scala compatibility with Spark.
libraryDependencies += "ml.combust.mleap" %% "mleap-runtime" % "0.20.0"
<dependency> <groupId>ml.combust.mleap</groupId> <artifactId>mleap-runtime_2.12</artifactId> <version>0.20.0</version> </dependency>
If you are packaging libraries into a single JAR, you need to use the Maven Shade plugin with the following transformer to ensure
reference.conf files are merged instead of being overwritten:
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> <resource>reference.conf</resource> </transformer>