Monday 6 April 2015

Issues to submit Spark job in YARN

1.  The job is accepted, but hanging until to fail.

15/03/25 20:28:53 INFO yarn.Client: Application report for application_1427016337843_0030 (state: ACCEPTED)
15/03/25 20:28:54 INFO yarn.Client: Application report for application_1427016337843_0030 (state: FAILED)
15/03/25 20:28:54 INFO yarn.Client:
client token: N/A
diagnostics: Application application_1427016337843_0030 failed 2 times due to AM Container for appattempt_1427016337843_0030_000002 exited with exitCode: 15
Diagnostics: Exception from container-launch.
Container id: container_1427016337843_0030_02_000001
Exit code: 15
Stack trace: ExitCodeException exitCode=15:
at org.apache.hadoop.util.Shell.runCommand(Shell.java:538)
at org.apache.hadoop.util.Shell.run(Shell.java:455)


Solution:
Should remove ".setMaster("local")" in the code, and add "--master yarn-cluster" as parameter in the command line.


2.  Incompatible scala version

5/03/26 02:37:49 INFO yarn.Client: Application report for application_1427016337843_0047 (state: RUNNING)
15/03/26 02:37:50 INFO yarn.Client: Application report for application_1427016337843_0047 (state: FINISHED)
15/03/26 02:37:50 INFO yarn.Client:
client token: N/A
diagnostics: User class threw exception: scala.Predef$.$conforms()Lscala/Predef$$less$colon$less;
ApplicationMaster host: ip-192-168-8-110.ap-southeast-1.compute.internal
ApplicationMaster RPC port: 0
queue: default
start time: 1427337486613
final status: FAILED

Solution:
The official released Spark1.3 is complited by scala 2.10. So the spark job should be compiled by 2.10 rather than 2.11+. Or you can recompile Spark by 2.11.

1 comment:

  1. Hi ,
    I am getting below error .exit code -1000.Please help me .

    17/08/02 13:00:31 INFO yarn.Client: Application report for application_1501590885460_0025 (state: ACCEPTED)
    17/08/02 13:00:31 INFO yarn.Client:
    client token: N/A
    diagnostics: [Wed Aug 02 18:00:31 +0000 2017] Scheduler has assigned a container for AM, waiting for AM container to be launched
    ApplicationMaster host: N/A
    ApplicationMaster RPC port: -1
    queue: default
    start time: 1501696830596
    final status: UNDEFINED
    tracking URL: http://ip-10-0-3-83.us-west-2.compute.internal:8088/proxy/application_1501590885460_0025/
    user: hari
    17/08/02 13:00:33 INFO yarn.Client: Application report for application_1501590885460_0025 (state: ACCEPTED)
    17/08/02 13:00:34 INFO yarn.Client: Application report for application_1501590885460_0025 (state: FAILED)
    17/08/02 13:00:34 INFO yarn.Client:
    client token: N/A
    diagnostics: Application application_1501590885460_0025 failed 2 times due to AM Container for appattempt_1501590885460_0025_000002 exited with exitCode: -1000

    ReplyDelete