当前位置: 首页 > 知识库问答 >
问题:

LazyOutputFormat(Hadoop api 2.x)中出现错误

松智勇
2023-03-14

对于配置中的MultipleOutputs,我使用LazyOutput,但它会产生错误。我已经检查了其他一些lazyoutput的例子,他们正在工作,它在我想要的程序中不工作。

 LazyOutputFormat.setOutputFormatClass(job, TextOutputFormat.class);

错误是

The method setOutputFormatClass(Job, Class<? extends OutputFormat>) in the  
type LazyOutputFormat is  not applicable for the arguments (Job, Class<TextOutputFormat>)

虽然与此处相同https://hadoop.apache.org/docs/current/api/org/apache/hadoop/mapreduce/lib/output/multipleoutputs.html

共有1个答案

秦才
2023-03-14

作为LazyOutputFormat.setOutputFormatClass()的第二个参数提供的OutputFormat必须与作业的实际OutputFormat相同。我猜您没有使用TextOutputFormat

 类似资料:
  • 我们遇到了阻止我们的问题。我们在Apache karaf 3.0.3、地窖3.0.3中的项目运行良好。现在我们升级到Apache karaf 4.2.0和Apache地窖4.1.0。我看到了这个错误 [activator-1-thread-2]ERROR org . Apache . karaf . features . internal . service . bootfeaturesinsta

  • 我试图在GlassFish server 4.1.0中部署ADF 12.1.3应用程序,但在部署过程中出现以下错误:将ADF essentials 3.1.2复制到GlassFish中的lib文件夹,ADF应用程序为12.1.3版本,GlassFish版本为4.1.0 部署过程中发生错误:部署应用程序时出现异常[MegatronApplicationOCS_07012015]:org.xml.sa

  • 我已经下载并安装了Codeception。我使用了以下说明:http://codeception.com/thanks 在编写和运行测试后,我得到以下错误: 我的单元测试如下: 当我的类没有扩展时,不会调用函数,断言函数也不会工作。 欢迎任何建议。

  • 当我发送iOS构建新的Codename One Scanner库时(我更改导入语句及其导入com.codename1.ext.codescan.CodeScanner;) 然后,我得到了服务器上生成的以下错误,iOS构建失败。 < code >以下构建命令失败:CompileC build/StockTake . build/Release-iphone OS/StockTake . build/