数据流作业失败,输出属性丢失错误

编程入门 行业动态 更新时间:2024-10-25 08:24:43
本文介绍了数据流作业失败,输出属性丢失错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

通过将输出参数作为参数传递时,数据流管道作业失败,消息输出属性丢失.

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.

更多推荐

数据流作业失败,输出属性丢失错误

本文发布于:2023-11-24 08:50:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1624538.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:作业   数据流   属性   错误

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!