kafka-connect-oracle icon indicating copy to clipboard operation
kafka-connect-oracle copied to clipboard

If I do not have topic

Open Eric-zch opened this issue 4 years ago • 2 comments

I met the below errors when I did not specify the topic in OracleSourceConnector.properties

[2020-09-19 14:50:11,070] ERROR Stopping after connector error (org.apache.kafka.connect.cli.ConnectStandalone:121) java.util.concurrent.ExecutionException: org.apache.kafka.connect.runtime.rest.errors.BadRequestException: Connector configuration is invalid and contains the following 1 error(s): Missing required configuration "topic" which has no default value. You can also find the above list of errors at the endpoint /{connectorType}/config/validate at org.apache.kafka.connect.util.ConvertingFutureCallback.result(ConvertingFutureCallback.java:115) at org.apache.kafka.connect.util.ConvertingFutureCallback.get(ConvertingFutureCallback.java:99) at org.apache.kafka.connect.cli.ConnectStandalone.main(ConnectStandalone.java:118) Caused by: org.apache.kafka.connect.runtime.rest.errors.BadRequestException: Connector configuration is invalid and contains the following 1 error(s): Missing required configuration "topic" which has no default value. You can also find the above list of errors at the endpoint /{connectorType}/config/validate at org.apache.kafka.connect.runtime.AbstractHerder.maybeAddConfigErrors(AbstractHerder.java:560) at org.apache.kafka.connect.runtime.standalone.StandaloneHerder.putConnectorConfig(StandaloneHerder.java:194) at org.apache.kafka.connect.cli.ConnectStandalone.main(ConnectStandalone.java:115)

Eric-zch avatar Sep 19 '20 07:09 Eric-zch

image

Not sure if this function for creating topic dynamically is implemented or not.

Eric-zch avatar Sep 19 '20 07:09 Eric-zch

Hi, Could you please write topic configuration parameter into your properties file and leave it blank ? . Like this

topic=

Thanks.

erdemcer avatar Sep 21 '20 10:09 erdemcer