Spark dependencies in the pom.xml have a scope of "provided", that makes Spark to verify the libraries to be available on the runtime classpath. However, in most cases, they are not pre-installed on your system.Hence change the scope of these dependencies to "compile".