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

报错内容:

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]));
Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐