Support Questions

Find answers, ask questions, and share your expertise

Error info: 16/04/24 13:42:24 WARN YarnScheduler: Initial job has not accepted any resources

avatar
Explorer

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

1 ACCEPTED SOLUTION

avatar
Explorer

Resolved. Need to edit the spark-env configure file to enable spark yarn client mode.

View solution in original post

3 REPLIES 3

avatar
Super Guru

@JR Cao

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.

3644-screen-shot-2016-04-24-at-30203-pm.png

avatar
Explorer

Resolved. Need to edit the spark-env configure file to enable spark yarn client mode.

avatar
Super Guru

@JR Cao

Thanks for the update, I think you don't need to specify spark-env since you already had --deploy-mode client.