当前位置:网站首页>Yan reports an error: exception message: /bin/bash: line 0: fg: no job control

Yan reports an error: exception message: /bin/bash: line 0: fg: no job control

2022-07-28 10:46:00 Data analyst shrimp

Exception message: /bin/bash: line 0: fg: no job control
 Insert picture description here
The mistake is Local idea Cross platform remote debugging hadoop The emergence of clusters , In the use of windows call Hadoop yarn Similar errors will occur in the platform
Method 1 : Go to the cluster mapred-site Configuration add

mapreduce.app-submission.cross-platform true

Method 2 :
Configuration conf = new Configuration();
conf.set(“mapreduce.app-submission.cross-platform”“true”);// It means cross platform submission , stay windows If there is no such code, an error will be reported “/bin/bash: line 0: fg: no job control”, Go online and search for answers. Many people say yes linux and windows Changes are generally caused by different environments YarnRunner.java, But actually, just add this line of code .

原网站

版权声明
本文为[Data analyst shrimp]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/209/202207281016094636.html