You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Jan Lukavský (Jira)" <ji...@apache.org> on 2021/07/12 07:47:00 UTC

[jira] [Updated] (BEAM-12597) Use AppendingTransformer for reference.conf in archetype poms

     [ https://issues.apache.org/jira/browse/BEAM-12597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Lukavský updated BEAM-12597:
--------------------------------
    Status: Open  (was: Triage Needed)

> Use AppendingTransformer for reference.conf in archetype poms
> -------------------------------------------------------------
>
>                 Key: BEAM-12597
>                 URL: https://issues.apache.org/jira/browse/BEAM-12597
>             Project: Beam
>          Issue Type: Improvement
>          Components: examples-java
>    Affects Versions: 2.31.0
>            Reporter: Jan Lukavský
>            Assignee: Jan Lukavský
>            Priority: P2
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The archetype pom.xml, does not include AppendingTransformer in shade plugin, which results in reference.conf being overwritten during build by files in different modules (akka, flink). This results in error when trying to run examples locally.
> {code}
>  java -cp target/word-count-beam-bundled-0.1.jar org.apache.beam.examples.WordCount --inputFile=/tmp/input --output=/tmp/output --runner=testflinkrunner
> ...
> Exception in thread "main" org.apache.beam.sdk.Pipeline$PipelineExecutionException: com.typesafe.config.ConfigException$UnresolvedSubstitution: reference.conf @ jar:file:/tmp/beam/word-count-beam/target/word-count-beam-bundled-0.1.jar!/reference.conf: 875: Could not resolve substitution to a value: ${akka.stream.materializer}
>  at org.apache.beam.runners.flink.TestFlinkRunner.run(TestFlinkRunner.java:75)
>  at org.apache.beam.sdk.Pipeline.run(Pipeline.java:323)
>  at org.apache.beam.sdk.Pipeline.run(Pipeline.java:309)
>  at org.apache.beam.examples.WordCount.runWordCount(WordCount.java:185)
>  at org.apache.beam.examples.WordCount.main(WordCount.java:192)
> Caused by: com.typesafe.config.ConfigException$UnresolvedSubstitution: reference.conf @ jar:file:/tmp/beam/word-count-beam/target/word-count-beam-bundled-0.1.jar!/reference.conf: 875: Could not resolve substitution to a value: ${akka.stream.materializer}
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)