I'm trying to run the spark examples from
Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources.
SparkConf conf = new SparkConf().setAppName("Simple Application");
The error indicates that you cluster has insufficient resources for current job.Since you have not started the slaves i.e worker . The cluster won't have any resources to allocate to your job. Starting the slaves will work.