Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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

avatar
New Member

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
New Member

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
New Member

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.