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 cross-compiled for Scala versions 2.11 and 2.12. We try to maintain Scala compatibility with Spark.
libraryDependencies += "ml.combust.mleap" %% "mleap-runtime" % "0.15.0"
<dependency> <groupId>ml.combust.mleap</groupId> <artifactId>mleap-runtime_2.11</artifactId> <version>0.15.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>