Fix the condition to include libraries.
We should use Spark and Hadoop libraries when we run application via sbt.