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]));
目录
相关文章
Newline required at end of file but not found.
Newline required at end of file but not found.
122 0
Newline required at end of file but not found.
|
12月前
ftok info: No such file or directory
ftok info: No such file or directory
115 0
|
12月前
|
Windows
UE INI File Operation [ Read / Write ] Plug-in description
UE INI File Operation [ Read / Write ] Plug-in description
50 0
perhaps your file is in a different file format and youneed to use a different restore operator?
perhaps your file is in a different file format and youneed to use a different restore operator?
116 0
|
人工智能 安全 Java
create PDF in console with no environment variable set
create PDF in console with no environment variable set
113 0
|
关系型数据库 测试技术 Oracle
[20180102]statistics_level=BASIC.txt
[20180102]statistics_level=BASIC.txt --//一个测试环境不知道谁设置statistics_level=BASIC,导致重启出现错误,自己在测试环境模拟看看: SYS@book> create pfile='/tmp/@.
1204 0