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/06/01 10:13:50 UTC

[GitHub] [pulsar] itaross commented on issue #7005: Update documentation with possibility to use local run with Pulsar IO sinks and sources

itaross commented on issue #7005:
URL: https://github.com/apache/pulsar/issues/7005#issuecomment-636761329


   > @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);
   >     }
   > ```
   
   Yes, exactly. I have developed quite few functions and having the ability to debug them boosted my productivity exponentially.
   For the connectors I have developed a modified version of the influxdb2 connector and it has been really hard to get it to work.


----------------------------------------------------------------
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