Spark, Spark Core, Rdd, Spark Api.
using a path on the local filesystem, the file must also be accessible at the same path on worker nodes. Either copy the file to all workers or use a network-mounted shared file system. All of Spark’s file-based input methods, including textFile, support running on directories, compressed files,