Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate records Inserted #8

Open
dbhatia2 opened this issue Jul 21, 2017 · 1 comment
Open

Duplicate records Inserted #8

dbhatia2 opened this issue Jul 21, 2017 · 1 comment

Comments

@dbhatia2
Copy link

Here Setup
Maxwell is reading from mysql binary logs and sending it to kafka.

  • From kafka, we are using this kafka-connect-mongodb, version 9 to import to Mongodb
  • listening at kafka consumer, we only see 1-1 message.
  • In Mongo for every message is produced, we are seeing 2 entries pushed.

Can you please suggest, Let me know if you need more logs.

more mongo_connector_configs.json.bkp
{
"name":"mongo-connector-",
"config" :{
"connector.class":"com.startapp.data.MongoSinkConnector",
"tasks.max":"5",
"db.host":"",
"db.port":"27017",
"db.name":"
*",
"db.collections":"mysqlcdc",
"write.batch.enabled":"true",
"write.batch.size":"200",
"connect.use_schema":"false",
"topics":"maxwell"
}
}

more /tmp/connect-distributed.properties|grep -v '#'

bootstrap.servers=localhost:9092

group.id=connect-cluster

key.converter=org.apache.kafka.connect.json.JsonConverter
value.converter=org.apache.kafka.connect.json.JsonConverter
key.converter.schemas.enable=false
value.converter.schemas.enable=false

internal.key.converter=org.apache.kafka.connect.json.JsonConverter
internal.value.converter=org.apache.kafka.connect.json.JsonConverter
internal.key.converter.schemas.enable=false
internal.value.converter.schemas.enable=false

offset.storage.topic=mongo-connect-offsets
offset.flush.interval.ms=10000
config.storage.topic=mongo-connect-configs

bin/kafka-topics.sh --list --zookeeper localhost:2181
__consumer_offsets
maxwell
mongo-connect-configs
mongo-connect-offs - marked for deletion
mongo-connect-offsets
test - marked for deletion

Thanks
Dk

@itayhasson12
Copy link

Hi!
Have you solved this bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants