Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-12597

Use AppendingTransformer for reference.conf in archetype poms

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 2.31.0
    • Fix Version/s: 2.32.0
    • Component/s: examples-java
    • Labels:
      None

      Description

      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.

       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}
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                janl Jan Lukavsk√Ĺ
                Reporter:
                janl Jan Lukavsk√Ĺ
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m