nlu90 commented on issue #6348: [Issue 6170][functions] add custom property option to functions URL: https://github.com/apache/pulsar/pull/6348#issuecomment-587642208 @KannarFr Thanks for your feedback - I added check for whether the property is set in broker/worker. If it's not set, an `IllegalArgumentException` will be thrown and the function submission will be failed. - Yes, this change also works with YAML configuration. For my previously example submission command, you can also use the following YAML file as a configuration file to submit: ```yaml jar: ./pulsar-functions/java-examples/target/pulsar-functions-api-examples.jar className: org.apache.pulsar.functions.api.examples.ExclamationFunction tenant: public namespace: default name: exclamation customProperties: - prop=HELLO inputs: - persistent://public/default/my-topic output: persistent://public/default/exclamation ``` and the submission command is: ```bash ./bin/pulsar-admin functions create --function-config-file ~/func-conf.yaml ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
