I\'m trying to run the spark examples from Eclipse and getting this generic error: Initial job has not accepted any resources; check your cluster UI to en
Spark Master doesn't have any resources allocated to execute the Job like worker node or slave node.
Fix
You have to start the slave node by connecting with the master node like this /SPARK_HOME/sbin> ./start-slave.sh spark://localhost:7077 (if your master in your local node)
Conclusion
start your master node and also slave node during spark-submit, so that you will get the enough resources allocated to execute the job.
Alternate-way
You need to make necessary changes in spark-env.sh file which is not recommended.