By default, Spark on YARN uses Spark JAR files that are installed locally. The
Spark JAR files can also be added to a world-readable location on file system. When you add the JAR files to a world-readable
location, YARN can cache them on nodes to avoid distributing them each time an
application runs. Complete the following steps to add the Spark JAR files to a
world-readable locaton on file system: