linkedin / databus

Source-agnostic distributed change data capture system
Apache License 2.0
3.64k stars 735 forks source link

The event schema is missing the required field key. databus for mysql #129

Closed ZhangWeiHelloWorld closed 4 years ago

ZhangWeiHelloWorld commented 4 years ago

Exception in thread "main" com.linkedin.databus.core.util.InvalidConfigException: com.linkedin.databus2.core.DatabusException: The event schema is missing the required field "key". at com.linkedin.databus2.producers.OpenReplicatorEventProducerServiceProvider.createProducer(OpenReplicatorEventProducerServiceProvider.java:55) at com.linkedin.databus2.relay.DatabusRelayMain.addOneProducer(DatabusRelayMain.java:213) at com.linkedin.databus2.relay.DatabusRelayMain.initProducers(DatabusRelayMain.java:262) at com.linkedin.databus.relay.example.RuahoRelayServer.main(RuahoRelayServer.java:76) Caused by: com.linkedin.databus2.core.DatabusException: The event schema is missing the required field "key". at com.linkedin.databus2.producers.OpenReplicatorAvroEventFactory.(OpenReplicatorAvroEventFactory.java:85) at com.linkedin.databus2.producers.OpenReplicatorEventProducerServiceProvider.createEventFactory(OpenReplicatorEventProducerServiceProvider.java:95) at com.linkedin.databus2.producers.OpenReplicatorEventProducerServiceProvider.buildEventFactory(OpenReplicatorEventProducerServiceProvider.java:136) at com.linkedin.databus2.producers.OpenReplicatorEventProducerServiceProvider.createProducer(OpenReplicatorEventProducerServiceProvider.java:52) ... 3 more why? how to configure?