Tez - DAGAppMaster - java.lang.IllegalArgumentException:无效的ContainerId

时间:2017-11-08 13:40:30

标签: hadoop hive yarn tez apache-tez

我尝试启动mapreduce作业,但在shell或hive中删除作业时出错:

  

蜂房>从员工中选择计数(*);查询ID =   mapr_20171107135114_a574713d-7d69-45e1-aa73-d4de07a3059b总工作量=   1启动工作1从1确定的减少任务数量   编译时间:1为了改变减速器的平均负载(in   bytes):set hive.exec.reducers.bytes.per.reducer =为了   限制最大减速器数量:set   hive.exec.reducers.max =为了设置一个常数   reducers:set mapreduce.job.reduces = Starting Job =   job_1510052734193_0005,跟踪网址=   http://hdpsrvpre2.intranet.darty.fr:8088/proxy/application_1510052734193_0005/   杀死命令= /opt/mapr/hadoop/hadoop-2.7.0/bin/hadoop job -kill   job_1510052734193_0005 Stage-1的Hadoop作业信息:number of   地图:0;减速机数量:0 2017-11-07 13:51:25,951第1阶段地图   = 0%,reduce = 0%结束作业= job_1510052734193_0005有错误作业期间出错,获取调试信息... **失败:执行   错误,从org.apache.hadoop.hive.ql.exec.mr.MapRedTask返回代码2   启动MapReduce作业:Stage-Stage-1:MAPRFS读取:0 MAPRFS写入:0   FAIL总MapReduce CPU耗时:0 mse

在Ressourcemanager中记录我发现的内容:

>     2017-11-07 13:51:25,269 INFO org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl:
> appattempt_1510052734193_0005_000002 State change from LAUNCHED to
> FINAL_SAVING 2017-11-07 13:51:25,269 INFO
> org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore:
> Updating info for attempt: appattempt_1510052734193_0005_000002 at:
> /var/mapr/cluster/yarn/rm/system/FSRMStateRoot/RMAppRoot/application_1510052734193_0005/appattempt_1510052734193_0005_000002
> 2017-11-07 13:51:25,283 INFO
> org.apache.hadoop.yarn.server.resourcemanager.ApplicationMasterService:
> Unregistering app attempt : appattempt_1510052734193_0005_000002
> 2017-11-07 13:51:25,283 INFO
> org.apache.hadoop.yarn.server.resourcemanager.security.AMRMTokenSecretManager:
> Application finished, removing password for
> appattempt_1510052734193_0005_000002 2017-11-07 13:51:25,283 **INFO
> org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl:
> appattempt_1510052734193_0005_000002 State change from FINAL_SAVING to
> FAILED** 2017-11-07 13:51:25,284 INFO
> org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppImpl: The
> number of failed attempts is 2. The max attempts is 2 2017-11-07
> 13:51:25,284 INFO
> org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppImpl:
> Updating application application_1510052734193_0005 with final state:
> FAILED 2017-11-07 13:51:25,284 INFO
> org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppImpl:
> application_1510052734193_0005 State change from ACCEPTED to
> FINAL_SAVING 2017-11-07 13:51:25,284 INFO
> org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore:
> Updating info for app: application_1510052734193_0005 2017-11-07
> 13:51:25,284 INFO
> org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler:
> Application appattempt_1510052734193_0005_000002 is done.
> finalState=FAILED 2017-11-07 13:51:25,284 INFO
> org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore:
> Updating info for app: application_1510052734193_0005 at:
> /var/mapr/cluster/yarn/rm/system/FSRMStateRoot/RMAppRoot/application_1510052734193_0005/application_1510052734193_0005
> 2017-11-07 13:51:25,284 INFO
> org.apache.hadoop.yarn.server.resourcemanager.scheduler.AppSchedulingInfo:
> Application application_1510052734193_0005 requests cleared 2017-11-07
> 13:51:25,296 INFO
> org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppImpl:
> Application application_1510052734193_0005 failed 2 times due to AM
> Container for appattempt_1510052734193_0005_000002 exited with
> exitCode: 1 For more detailed output, check application tracking
> page:http://hdpsrvpre2.intranet.darty.fr:8088/cluster/app/application_1510052734193_0005Then,
> click on links to logs of each attempt. Diagnostics: Exception from
> container-launch. Container id:
> container_e10_1510052734193_0005_02_000001 Exit code: 1 Stack trace:
> ExitCodeException exitCode=1: at
> org.apache.hadoop.util.Shell.runCommand(Shell.java:545) at
> org.apache.hadoop.util.Shell.run(Shell.java:456) at
> org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:722)
> at
> org.apache.hadoop.yarn.server.nodemanager.LinuxContainerExecutor.launchContainer(LinuxContainerExecutor.java:304)
> at
> org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:354)
> at
> org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:87)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262) at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)
> at java.lang.Thread.run(Thread.java:748) Shell output: main : command
> provided 1 main : user is mapr main : requested yarn user is mapr
>     
>     Container exited with a non-zero exit code 1 Failing this attempt. Failing the application.

另外,在我发现的作业的sys日志中:

  

2017-11-07 12:09:46,419 致命[主要] app.DAGAppMaster:错误启动   DAGAppMaster java.lang.IllegalArgumentException:无效的ContainerId:   container_e10_1510052734193_0001_01_000001 at   org.apache.hadoop.yarn.util.ConverterUtils.toContainerId(ConverterUtils.java:182)   在org.apache.tez.dag.app.DAGAppMaster.main(DAGAppMaster.java:1794)   引起:java.lang.NumberFormatException:对于输入字符串:“e10”
  在   java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)   在java.lang.Long.parseLong(Long.java:441)at   java.lang.Long.parseLong(Long.java:483)at   org.apache.hadoop.yarn.util.ConverterUtils.toApplicationAttemptId(ConverterUtils.java:137)   在   org.apache.hadoop.yarn.util.ConverterUtils.toContainerId(ConverterUtils.java:177)   ......还有1个

似乎Tez引起了这个问题,有没有解决办法? 谢谢!

1 个答案:

答案 0 :(得分:0)

我认为执行环境有hadoop的 不同版本 及其各自的jar文件。

请验证环境并确保仅使用所需的版本,并从任何环境变量中删除其他版本的引用。