hadoop jar…运行异常,终端日志如下
Job job_1609054990280_0001 failed with state FAILED due to: Application application_1609054990280_0001 failed 2 times due to AM Container for appattempt_1609054990280_0001_000002 exited with exitCode: 1
Failing this attempt.Diagnostics: [2020-12-27 15:44:57.935]Exception from container-launch.
Container id: container_1609054990280_0001_02_000001
Exit code: 1
没有显示去详细错误信息,需要查看用户日志http://hadoop01:8042/logs/userlogs/
,hadoop01为我的hadoop客户端机器中的一条hosts记录 172.17.0.2 hadoop01
,并应用到了客户端的配置文件中(可是没有写到分布式集群中)。
从终端日志中看出application ID为application_1609054990280_0001,进入第一个文件夹,继续进入查看syslog。
看出详细异常信息:
得知是访问的节点无法解析域名hadoop01,添加到hosts中就好了。
——————————————————————————————————————
记录一下解决问题的过程,下次好知道去怎么分析问题。