Tez - DAGAppMasteR语言 java.lang.IllegalArgumentException: Inv



我试图启动mapreduce作业,但在shell或hive中执行作业时出错:

hive>从员工中选择计数(*);查询ID=mapr_20171107135114_a574713d-7d69-45e1-a73-d4de07a3059b作业总数=1正在启动作业1(共1个)在确定的减少任务数编译时间:1为了更改减速器的平均负载(Inbytes):set hive.exec.ereducers.bytes.per.ereducer=为了限制减速器的最大数量:设置hive.exec.reducers.max=为了将reducers:set mapreduce.job.resources=正在启动作业=job_1510052734193_0005,跟踪URL=http://hdpsrvpre2.intranet.darty.fr:8088/proxy/application_1510052734193_0005/Kill命令=/opt/mapr/hadoop/hadop-2.7.0/bin/hadoop job-Killjob_1510052734193_0005第1阶段的Hadoop作业信息:数量映射程序:0;减速器数量:0 2017-11-07 13:51:25951第一阶段地图=0%,reduce=0%结束作业=作业_1510052734193_0005有错误作业期间出错,正在获取调试信息**失败:执行错误,从org.apache.hadop.hive.ql.exec.mr.MapRedTask返回代码2MapReduce作业启动:阶段-1:MAPRFS读取:0 MAPRFS写入:0失败MapReduce CPU总花费时间:0毫秒

在资源管理器中记录我发现的:

>     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.

此外,在作业的系统日志中,我发现:

2017-11-07 12:09:46419FATAL[main]应用程序。DAGAppMaster:启动时出错DAGAppMaster java.lang.IollegalArgumentException:无效的ContainerId:container_e10_15105022734193_0001_01_ 000001位于org.apache.hadop.yarn.util.ConvererUtils.toContainerId(ConverterUtils.java:182)网址:org.apache.tez.dag.app.DAGAPMaster.main(DAGAPMaster.java:1794)由:java.lang.NumberFormatException引起:对于位于的输入字符串:"e10">
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)在java.lang.Long.parseLong(Long.java:441)java.lang.Long.parseLong(Long.java:483)org.apache.hadop.yarn.util.ConvererUtils.toApplicationAttemptId(转换器Utils.java:137)在org.apache.hadop.yarn.util.ConvererUtils.toContainerId(ConverterUtils.java:177)…还有1个

似乎是Tez造成了这个问题,有什么解决方案吗?非常感谢。

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

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

相关内容

  • 没有找到相关文章

最新更新