Exception message: /bin/bash: line 0: fg: no job control Stack trace: ExitCodeException exitCode=1:

前端之家收集整理的这篇文章主要介绍了Exception message: /bin/bash: line 0: fg: no job control Stack trace: ExitCodeException exitCode=1:前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Exceptionmessage: /bin/bash: line 0: fg: no job controlStacktrace: ExitCodeException exitCode=1: /bin/bash: line 0: fg: no job control



问题现象:

远程提交Hadoop 时候报错

Exception message: /bin/bash: line 0: fg: no job control

Stack trace: ExitCodeException exitCode=1: /bin/bash: line 0: fg: no job control

    at org.apache.hadoop.util.Shell.runCommand(Shell.java:538)
    at org.apache.hadoop.util.Shell.run(Shell.java:455)
    at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:715)
    at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:211)
    at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:302)
    at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)


或者报错:

Error: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class cpcn.payment.statementinternalbatch.mapred.accountinner.AccountInnerMap not found at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2195) at 


如何解决

代码打包,并设置conf,conf.set("mapred.jar","**.jar");再次执行:


如果报错 exitcode with 1怎么解决


查看你代码配置:

点击打开博客链接

原文链接:https://www.f2er.com/bash/389846.html

猜你在找的Bash相关文章