You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/05/31 09:23:31 UTC

[GitHub] [pulsar] wolfstudy edited a comment on issue #7005: Update documentation with possibility to use local run with Pulsar IO sinks and sources

wolfstudy edited a comment on issue #7005:
URL: https://github.com/apache/pulsar/issues/7005#issuecomment-636444912


   @itaross Thanks for your feedback. Do you want to test the pulsar source or pulsar sink using java code in a [similar way](https://pulsar.apache.org/docs/en/functions-debug/#debug-with-localrun-mode)?
   
   For example:
   
   ```
       public static void main(String[] args) throws Exception {
           SourceConfig sourceConfig = new SourceConfig();
           sourceConfig.setName("exclamation");
           sourceConfig.setClassName(ExclamationFunction.class.getName());
           ...
           LocalRunner sourceLocalRunner = LocalRunner.builder().sourceConfig(sourceConfig).build();
           sourceLocalRunner.start(false);
       }
   ```
   
   


----------------------------------------------------------------
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:
users@infra.apache.org