Команды для создания коннекторов¶
Необходимо по очереди выполнить команды, приведенные ниже, заменив <debezium-connect-host> на фактический адрес сервера Debezium Connect.
Команды для создания source-коннекторов:
bash
curl -X POST -H "Content-Type: application/json" --data @source-collections.json http://<debezium-connect-host>:8083/connectors
curl -X POST -H "Content-Type: application/json" --data @source-documents.json http://<debezium-connect-host>:8083/connectors
curl -X POST -H "Content-Type: application/json" --data @source-files.json http://<debezium-connect-host>:8083/connectors
curl -X POST -H "Content-Type: application/json" --data @source-relations.json http://<debezium-connect-host>:8083/connectors
Команды для создания sink-коннекторов:
bash
curl -X POST -H "Content-Type: application/json" --data @sink-collections.json http://<debezium-connect-host>:8083/connectors
curl -X POST -H "Content-Type: application/json" --data @sink-collection-content.json http://<debezium-connect-host>:8083/connectors
curl -X POST -H "Content-Type: application/json" --data @sink-documents.json http://<debezium-connect-host>:8083/connectors
curl -X POST -H "Content-Type: application/json" --data @sink-files.json http://<debezium-connect-host>:8083/connectors
curl -X POST -H "Content-Type: application/json" --data @sink-items.json http://<debezium-connect-host>:8083/connectors
curl -X POST -H "Content-Type: application/json" --data @sink-relations.json http://<debezium-connect-host>:8083/connectors