30-configure-debezium.td 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Copyright Materialize, Inc. and contributors. All rights reserved.
  2. #
  3. # Use of this software is governed by the Business Source License
  4. # included in the LICENSE file at the root of this repository.
  5. #
  6. # As of the Change Date specified in that file, in accordance with
  7. # the Business Source License, use of this software will be governed
  8. # by the Apache License, Version 2.0.
  9. #
  10. # Note that this file is *not* reentrant. Debezium does not allow
  11. # error-free dropping of objects that may or may not exist
  12. # using the same set of commands for all cases.
  13. #
  14. # Furthermore, doing a couple of REST calls against the same Debezium
  15. # connector is an easy way to bork it, so please always do
  16. #
  17. # ./mzcompose -down v
  18. #
  19. # before running this test framework again.
  20. #
  21. $ http-request method=POST url=http://debezium:8083/connectors content-type=application/json
  22. {
  23. "name": "mysql-connector",
  24. "config": {
  25. "bigint.unsigned.handling.mode": "precise",
  26. "connector.class": "io.debezium.connector.mysql.MySqlConnector",
  27. "database.hostname": "mysql",
  28. "database.port": "3306",
  29. "database.user": "root",
  30. "database.password": "${arg.mysql-root-password}",
  31. "database.server.id": "1234",
  32. "database.server.name": "mysql",
  33. "database.include.list": "test",
  34. "database.history.kafka.bootstrap.servers": "kafka:9092",
  35. "database.history.kafka.topic": "dbhistory.mysql",
  36. "include.schema.changes": "true",
  37. "schema.history.internal.kafka.bootstrap.servers": "kafka:9092",
  38. "schema.history.internal.kafka.topic": "schemahistory.mysql",
  39. "provide.transaction.metadata": "true",
  40. "topic.prefix": "mysql"
  41. }
  42. }