You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2018/05/22 05:15:59 UTC

[incubator-pulsar] branch master updated: Example Pulsar Function configs in binary distribution (#1824)

This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 81e5f9e  Example Pulsar Function configs in binary distribution (#1824)
81e5f9e is described below

commit 81e5f9e0238d958e488440e959a26e1a6b0777d8
Author: Luc Perkins <lu...@gmail.com>
AuthorDate: Mon May 21 22:15:55 2018 -0700

    Example Pulsar Function configs in binary distribution (#1824)
    
    * move example YAML configs into java-examples folder
    
    * add example configs to binary distribution
    
    * remove accidentally included file
---
 all/src/assemble/bin.xml                                       | 10 ++++++++++
 .../src/main/resources/example-function-config.yaml            |  2 +-
 .../src/main/resources/example-window-function-config.yaml     |  2 +-
 3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/all/src/assemble/bin.xml b/all/src/assemble/bin.xml
index 3c58be7..f3cfa9b 100644
--- a/all/src/assemble/bin.xml
+++ b/all/src/assemble/bin.xml
@@ -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>
diff --git a/conf/example.yml b/pulsar-functions/java-examples/src/main/resources/example-function-config.yaml
similarity index 96%
rename from conf/example.yml
rename to pulsar-functions/java-examples/src/main/resources/example-function-config.yaml
index 58f9bf5..a66b75f 100644
--- a/conf/example.yml
+++ b/pulsar-functions/java-examples/src/main/resources/example-function-config.yaml
@@ -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
diff --git a/conf/window_example.yml b/pulsar-functions/java-examples/src/main/resources/example-window-function-config.yaml
similarity index 97%
rename from conf/window_example.yml
rename to pulsar-functions/java-examples/src/main/resources/example-window-function-config.yaml
index a4470d9..3dc3279 100644
--- a/conf/window_example.yml
+++ b/pulsar-functions/java-examples/src/main/resources/example-window-function-config.yaml
@@ -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

-- 
To stop receiving notification emails like this one, please contact
mmerli@apache.org.