InvalidJobConfException: Output directory not set

简介: InvalidJobConfException: Output directory not set

以后还是要先看一下翻译的结果吧。头疼。

报错内容:

Output directory not set.
2023-02-27 18:15:48,840 INFO client.RMProxy: Connecting to ResourceManager at hadoop102/39.98.177.124:8032
Exception in thread "main" org.apache.hadoop.mapred.InvalidJobConfException: Output directory not set.
  at org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.checkOutputSpecs(FileOutputFormat.java:156)
  at org.apache.hadoop.mapreduce.JobSubmitter.checkSpecs(JobSubmitter.java:277)
  at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:143)
  at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1570)

翻译一下:

更改前

6、设置输入和输出路径
  FileInputFormat.setInputPaths(job, new Path(args[0]));
  FileInputFormat.setInputPaths(job, new Path(args[1]));

更改后

6、设置输入和输出路径
  FileInputFormat.setInputPaths(job, new Path(args[0]));
  FileInputFormat.setOutputPath(job, new Path(args[1]));
目录
相关文章
|
6月前
|
Java
cannot open shared object file: No such file or directory
cannot open shared object file: No such file or directory
84 0
|
Python
ERROR: file or directory not found: xx.py
​ 1、问题出现原因 在vscode中已导入pytest框架,做自动化demo小测试,运行Python文件一直出现如题错误,截图如下: ERROR: file or directory not found: xx.py  2、解决办法 1)直接把该文件移到当前主目录下,放在PYTHON-STUDY下 2)VSCode中右键tuopan.py文件,选择[在集成终端中打开],或者通过CD命令进入到tuopan.py文件所在目录 然后输入以下命令即可: 注:上述命令不是换行,在d:/前有空格 ,第一行信息为python所在安装路径,空格后的换行为运行的python文件的所在路径  
154 0
ftok info: No such file or directory
ftok info: No such file or directory
191 0
|
Windows
UE INI File Operation [ Read / Write ] Plug-in description
UE INI File Operation [ Read / Write ] Plug-in description
67 0
|
JavaScript
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
188 0
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
|
关系型数据库 测试技术 Oracle
[20180102]statistics_level=BASIC.txt
[20180102]statistics_level=BASIC.txt --//一个测试环境不知道谁设置statistics_level=BASIC,导致重启出现错误,自己在测试环境模拟看看: SYS@book> create pfile='/tmp/@.
1250 0