使用scala写MapReduce作业代码,在运行时出现错误:
14/03/21 17:49:43 INFO mapreduce.Job: Job job_1395395314485_0001 failed with state FAILED due to: Application application_1395395314485_0001 failed 2 times due to AM Container for appattempt_1395395314485_0001_000002 exited with exitCode: 1 due to: Exception from container-launch:
org.apache.hadoop.util.Shell$ExitCodeException:
at org.apache.hadoop.util.Shell.runCommand(Shell.java:458)
at org.apache.hadoop.util.Shell.run(Shell.java:373)
at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:578)
at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:208)
at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.Container