September 2018
Intermediate to advanced
398 pages
9h 43m
English
In order to run our application with a Spark distribution, we need to package our compiled classes and their dependencies in a JAR file. This is what we call an assembly JAR or fat JAR: its size can be quite large if you have many dependencies. To do that, we have to modify our SBT build files.
First, we need to enable the assembly plugin. Add a new file, assembly.sbt, in the bitcoin-analyser/project folder and type the following:
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.7"
We also need to exclude all the Spark dependencies from our assembly JAR. There is no point in having them as they are already present in the Spark distribution. Excluding them will save space and build time. For this, we had already ...
Read now
Unlock full access