【问题标题】:Initializing Apache Beam Test Pipeline in Scala fails在 Scala 中初始化 Apache Beam 测试管道失败
【发布时间】:2019-08-05 16:04:59
【问题描述】:

当我尝试运行测试管道时,它会引发错误

这里是创建测试管道的源代码:

val p: TestPipeline = TestPipeline.create()

这是错误:

java.lang.IllegalStateException:您的 TestPipeline 声明是否缺少 @Rule 注释?用法:@Rule public final transient TestPipeline pipeline = TestPipeline.create();

【问题讨论】:

    标签: java scala pipeline apache-beam


    【解决方案1】:

    我已经通过以下代码解决了这个问题:

    val p: TestPipeline = TestPipeline.create().enableAbandonedNodeEnforcement(false)
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-01-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-03
    • 2021-06-26
    • 1970-01-01
    相关资源
    最近更新 更多