本文介绍了数据流作业失败,输出属性丢失错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
通过将输出参数作为参数传递时,数据流管道作业失败,消息输出属性丢失.
Dataflow pipeline job failing with message output property missing though passing output parameter as arguments.
错误:
Exception in thread "main" java.lang.IllegalArgumentException: Class interface org.apache.beam.runners.dataflow.options.DataflowPipelineOptions missing a property named 'output'. at org.apache.beam.sdk.options.PipelineOptionsFactory.parseObjects(PipelineOptionsFactory.java:1483) at org.apache.beam.sdk.options.PipelineOptionsFactory.access$400(PipelineOptionsFactory.java:110) at org.apache.beam.sdk.options.PipelineOptionsFactory$Builder.as(PipelineOptionsFactory.java:297) at com.example.DataValidationPipeline.getOptions(DataValidationPipeline.java:36) at com.example.DataValidationPipeline.main(DataValidationPipeline.java:50) 推荐答案此错误消息可能更清晰.它应显示为:未知标志:--output".
This error message could be clearer. It should read something like: "unknown flag: --output".
最近,当我将管道基于wordcount示例但删除了 WordCountOptions 类时,也遇到了类似的错误.用于运行wordcount的命令行包括 -Dexec.args =-output = something" .删除-output = something ,它应该对您有用.
I've had a similar error recently when I based my pipeline on the wordcount example but deleted the WordCountOptions class. The command line for running wordcount includes -Dexec.args="--output=something". Remove the --output=something and it should work for you.
更多推荐
数据流作业失败,输出属性丢失错误
发布评论