Support Questions
Find answers, ask questions, and share your expertise

Initial job has not accepted any resources

clusterurl.pnglogurlpng.pngterminal.pngI am using Sandbox 2.4 , I created a simple Spark Java application with the following conif.

 SparkConf conf = new SparkConf().setAppName("spark").set("spark.master", "yarn-client");

I packaged a Jar and used spark-submit to run the app

but I got the following error.

Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources

I opened the URL


and clicked on the log link to see the log, but I got

Access Denied.

I attached couple of photos to give a clear idea what's going on with me

thank you for your help.


it looks you have not enough resources available with RM and also you are not able to check resource available due to access denied on RM UI.try to access ui by replacing by http://<IP_OF_SANDBOX>:8042 and ensure that your IP is reachable from your host

as this is a single node so you can try yarn node -status <nm ip>

@Rajkumar Singh

thank you for your answer,

when I do

yarn node -status

[root@sandbox bin]# yarn node -status
16/06/02 12:54:41 INFO impl.TimelineClientImpl: Timeline service address:
16/06/02 12:54:41 INFO client.RMProxy: Connecting to ResourceManager at
Could not find the node report for node id :

and I can access

see the photo please .nodemanager.png

@Rajkumar Singh

and can you please tell my why I am getting access denied on RM UI?

Super Guru

is anything else running in the spark cluster (like Zeppelin)?

Or do you have not enough YARN resources?

@Timothy Spann

I didn't run anything except this spark application.

I installed sandbox 2.4 on VirtualBox on windows machine, and I gave this VM 2 cores and 8GB.

Super Guru

can you screen print the main screen of ambari. make sure you are running the spark job from the command line on the sandbox

@Timothy Spann

yes I'm running it from command line on the sandbox,

and here is the screen shot of Ambari ambariscreen.png

Super Guru

what does it saw on the main page for YARN resources?

@Timothy Spannrm-ui.pngyarnservice.png

I attatched photos for Yarn Service page and RM UI page.