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 2018/11/12 08:44:34 UTC
[GitHub] jiazhai opened a new pull request #2975: add topicName to fix NPE
for example config debezium-mysql-source-config.yaml
jiazhai opened a new pull request #2975: add topicName to fix NPE for example config debezium-mysql-source-config.yaml
URL: https://github.com/apache/pulsar/pull/2975
### Motivation
With the latest master code, `pulsar-admin source localrun` would fail if no topicName was provided in the config file example.
```
$ bin/pulsar-admin source localrun --sourceConfigFile debezium-mysql-source-config.yaml --archive connectors/pulsar-io-kafka-connect-adaptor-2.3.0-SNAPSHOT.nar
...
Exception in thread "main" java.lang.NullPointerException
at org.apache.pulsar.functions.proto.Function$SinkSpec$Builder.setTopic(Function.java:8197)
at org.apache.pulsar.functions.utils.SourceConfigUtils.convert(SourceConfigUtils.java:126)
at org.apache.pulsar.functions.runtime.LocalRunner.start(LocalRunner.java:135)
at org.apache.pulsar.functions.runtime.LocalRunner.main(LocalRunner.java:89)
```
### Modifications
Add topicName in example configuration
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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
With regards,
Apache Git Services