Skip to content

Commit

Permalink
Example Pulsar Function configs in binary distribution (apache#1824)
Browse files Browse the repository at this point in the history
* move example YAML configs into java-examples folder

* add example configs to binary distribution

* remove accidentally included file
  • Loading branch information
lucperkins authored and merlimat committed May 22, 2018
1 parent 4f076f2 commit 81e5f9e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions all/src/assemble/bin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,16 @@
<destName>api-examples.jar</destName>
<outputDirectory>examples</outputDirectory>
</file>
<file>
<source>${basedir}/../pulsar-functions/java-examples/src/main/resources/example-function-config.yaml</source>
<destName>example-function-config.yaml</destName>
<outputDirectory>examples</outputDirectory>
</file>
<file>
<source>${basedir}/../pulsar-functions/java-examples/src/main/resources/example-window-function-config.yaml</source>
<destName>example-window-function-config.yaml</destName>
<outputDirectory>examples</outputDirectory>
</file>
</files>
<dependencySets>
<dependencySet>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name: "example"
className: "org.apache.pulsar.functions.api.examples.ExclamationFunction"
inputs: ["test_src"]
userConfig:
"PublishTopic" : "test_result"
"PublishTopic": "test_result"

output: "test_result"
autoAck: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name: "example"
className: "org.apache.pulsar.functions.api.examples.WindowFunction"
inputs: ["test_src"]
userConfig:
"PublishTopic" : "test_result"
"PublishTopic": "test_result"

output: "test_result"
autoAck: true
Expand Down

0 comments on commit 81e5f9e

Please sign in to comment.