Advertisement
ctrlvfailed

ghb

Apr 14th, 2020
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. curl -X POST http://localhost:8083/connectors -H "Content-Type: application/json" -d '{
  2. "name": "jdbc_source_postgres_03",
  3. "config": {
  4. "connector.class": "io.confluent.connect.jdbc.JdbcSourceConnector",
  5. "connection.url": "jdbc:postgresql://localhost:5432/test_db",
  6. "connection.user": "postgres",
  7. "connection.password": "thecartel",
  8. "topic.prefix": "postgres-03-",
  9. "mode":"bulk"
  10. }
  11. }'
  12.  
  13. curl -X POST http://localhost:8083/connectors -H "Content-Type: application/json" -d '{
  14. "name": "jdbc_source_mysql_01",
  15. "config": {
  16. "connector.class": "io.confluent.connect.jdbc.JdbcSourceConnector",
  17. "connection.url": "jdbc:postgresql://localhost:5432/test_db",
  18. "connection.user": "postgres",
  19. "connection.password": "thecartel",
  20. "topic.prefix": "mysql-01-",
  21. "mode":"bulk",
  22. "table.whitelist" : "device_channel_feeds"
  23. }
  24. }'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement