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.
230 0
Newline required at end of file but not found.
ftok info: No such file or directory
ftok info: No such file or directory
283 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)
225 0
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
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?
186 0
torch.distributed.init_process_group(‘gloo’, init_method=‘file://tmp/somefile’, rank=0, world_size=1
torch.distributed.init_process_group(‘gloo’, init_method=‘file://tmp/somefile’, rank=0, world_size=1
620 0
torch.distributed.init_process_group(‘gloo’, init_method=‘file://tmp/somefile’, rank=0, world_size=1