This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ bin/confluent start | |
This CLI is intended for development only, not for production | |
https://docs.confluent.io/current/cli/index.html | |
Using CONFLUENT_CURRENT: /var/folders/3y/s550jfz10_70pcvp54ngvcqh0000gp/T/confluent.yn9o8RJa | |
Starting zookeeper | |
zookeeper is [UP] | |
Starting kafka | |
kafka is [UP] | |
Starting schema-registry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"class": "at.grahsl.kafka.connect.mongodb.MongoDbSinkConnector", | |
"type": "sink", | |
"version": "1.1.0" | |
}, | |
{ | |
"class": "io.confluent.connect.elasticsearch.ElasticsearchSinkConnector", | |
"type": "sink", | |
"version": "5.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "name": "cosmosdb-sink", | |
"config": | |
{ | |
"topics":"blogpost", | |
"connector.class":"at.grahsl.kafka.connect.mongodb.MongoDbSinkConnector", | |
"key.converter":"org.apache.kafka.connect.json.JsonConverter", | |
"key.converter.schemas.enable":false, | |
"value.converter":"org.apache.kafka.connect.json.JsonConverter", | |
"value.converter.schemas.enable":false, | |
"mongodb.connection.uri": "<PUT_YOUR_CONNECTION_STRING_HERE_AND_ADD_DATABASE_NAME>", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST \ | |
http://localhost:8083/connectors \ | |
-H 'Content-Type: application/json' \ | |
-d '{ "name": "cosmosdb-sink", | |
"config": | |
{ | |
"topics":"blogpost", | |
"connector.class":"at.grahsl.kafka.connect.mongodb.MongoDbSinkConnector", | |
"key.converter":"org.apache.kafka.connect.json.JsonConverter", | |
"key.converter.schemas.enable":false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bin/kafka-topics --zookeeper localhost:2181 --topic blogpost --create --replication-factor 1 --partitions 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"class": "at.grahsl.kafka.connect.mongodb.MongoDbSinkConnector", | |
"type": "sink", | |
"version": "1.2.0" | |
}, | |
{ | |
"class": "io.debezium.connector.mongodb.MongoDbConnector", | |
"type": "source", | |
"version": "0.8.1.Final" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST \ | |
http://localhost:8083/connectors \ | |
-H 'Content-Type: application/json' \ | |
-d '{ | |
"name": "inventory-connector", | |
"config": { | |
"connector.class": "io.debezium.connector.mysql.MySqlConnector", | |
"tasks.max": "1", | |
"database.hostname": "mysql", | |
"database.port": "3306", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST \ | |
http://localhost:8083/connectors \ | |
-H 'Content-Type: application/json' \ | |
-d '{ "name": "cosmosdb-sink", | |
"config": | |
{ | |
"topics":"dbserver1.inventory.products,dbserver1.inventory.products_on_hand,dbserver1.inventory.customers,dbserver1.inventory.addresses,dbserver1.inventory.orders", | |
"connector.class":"at.grahsl.kafka.connect.mongodb.MongoDbSinkConnector", | |
"key.converter":"org.apache.kafka.connect.json.JsonConverter", | |
"key.converter.schemas.enable":true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_id": "10021-2015-ENFO", | |
"certificate_number": 9278806, | |
"business_name": "ATLIXCO DELI GROCERY INC.", | |
"date": "Feb 20 2015", | |
"result": "No Violation Issued", | |
"sector": "Cigarette Retail Dealer - 127", | |
"address": { | |
"city": "RIDGEWOOD", | |
"zip": 11385, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST \ | |
http://localhost:8083/connectors \ | |
-H 'Content-Type: application/json' \ | |
-d '{ | |
"name": "mongodb-replicator-01", | |
"config": { | |
"connector.class": "io.debezium.connector.mongodb.MongoDbConnector", | |
"mongodb.hosts": "config01:27017", | |
"mongodb.name": "example", | |
"collection.whitelist": "blogpost.demo_collA" |
OlderNewer