Created 04-24-2016 01:57 PM
Hi,
In HDP sandbox 2.4,
When to start Spark with
./bin/spark-shell --master yarn --deploy-mode client
After create a job, there's error:
16/04/24 13:42:24 WARN YarnScheduler: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources
Created 04-26-2016 02:36 AM
Resolved. Need to edit the spark-env configure file to enable spark yarn client mode.
Created on 04-24-2016 02:06 PM - edited 08-19-2019 04:10 AM
Hi,
It means that either your cluster doesn't have sufficient resources or in some cases non of node managers connected to the resource manager.
Please cross check your resource manager UI and look for "Memory used", "Memory Total" and "Active Nodes" section.
http://<RM IP>:8088
see attached screenshot.
Created 04-26-2016 02:36 AM
Resolved. Need to edit the spark-env configure file to enable spark yarn client mode.
Created 04-26-2016 09:55 AM
Thanks for the update, I think you don't need to specify spark-env since you already had --deploy-mode client.