I’m migrating a production app from SQL Server to MongoDB. For the purpose, I’m using relational migrator v1.10.0.
I’ve mapped collections, designed schema and I’ve been able to run migration jobs with sample data collection set.
Because I’ve data around 30GB, I’m trying to set it up with confluent cloud kafka. When I start the job, it throws error:
Cannot invoke "java.util.Set.stream()" because the return value of "com.mongodb.migrator.application.migration.confluent.model.ConnectV1CustomConnectorPluginList.getData()" is null
Please note that I’ve configured the Confluent correctly as you can see the confluent icon here:
Here the system_info
{
"migrator_deployment" : "confluent",
"migrator_version" : "1.10.0",
"system_cores" : "4",
"jvm_vendor" : "Eclipse Adoptium",
"os_version" : "10.0",
"telemetry_user_id" : "6d7a9ac4-0f4b-4b85-859c-abac6d24b49e",
"os_arch" : "amd64",
"system_memory" : "15 GB",
"os_name" : "Windows Server 2019",
"jvm_version" : "17.0.12"
}
The logs from the logs file are also here
2024-11-07 00:36:04,378 INFO c.m.i.d.l.SLF4JLogger [cluster-ClusterId{value='672c0b74a00a7c1a45a32832', description='MongoDBRelationalMigrator'}-veronicas-insurance-shard-00-01.ui2ap.mongodb.net:27017] Discovered replica set primary veronicas-insurance-shard-00-01.ui2ap.mongodb.net:27017 with max election id 7fffffff00000000000000d7 and max set version 29
2024-11-07 00:36:04,611 INFO c.m.m.a.p.t.ConfluentCustomConnectorTask [pool-6-thread-1] Checking Confluent for Debezium Source Custom Connector
2024-11-07 00:36:04,634 INFO c.m.m.a.m.s.MigrationStateMachine$1 [pool-6-thread-1] Transition from: PRE_TASKS, trigger: FAIL
2024-11-07 00:36:04,638 WARN c.m.m.a.m.j.MigrationJobService [pool-6-thread-1] Migration job finished with exception
java.lang.NullPointerException: Cannot invoke "java.util.Set.stream()" because the return value of "com.mongodb.migrator.application.migration.confluent.model.ConnectV1CustomConnectorPluginList.getData()" is null
at com.mongodb.migrator.application.premigration.task.ConfluentCustomConnectorTask.hasConnector(ConfluentCustomConnectorTask.java:76)
at com.mongodb.migrator.application.premigration.task.ConfluentCustomConnectorTask.hasSourceConnector(ConfluentCustomConnectorTask.java:66)
at com.mongodb.migrator.application.premigration.task.ConfluentCustomConnectorTask.run(ConfluentCustomConnectorTask.java:44)
at com.mongodb.migrator.application.premigration.task.PreMigrationTaskRunner.lambda$runTasks$0(PreMigrationTaskRunner.java:22)
at java.base/java.util.ArrayList.forEach(Unknown Source)
at com.mongodb.migrator.application.premigration.task.PreMigrationTaskRunner.runTasks(PreMigrationTaskRunner.java:22)
at com.mongodb.migrator.application.migration.job.MigrationJobService.lambda$initializeMigrationStateMachine$5(MigrationJobService.java:162)
at com.github.oxo42.stateless4j.StateConfiguration$6.doIt(StateConfiguration.java:284)
at com.github.oxo42.stateless4j.StateConfiguration$6.doIt(StateConfiguration.java:281)
at com.github.oxo42.stateless4j.StateConfiguration$7.doIt(StateConfiguration.java:300)
at com.github.oxo42.stateless4j.StateConfiguration$7.doIt(StateConfiguration.java:297)
at com.github.oxo42.stateless4j.StateRepresentation.executeEntryActions(StateRepresentation.java:122)
at com.github.oxo42.stateless4j.StateRepresentation.enter(StateRepresentation.java:101)
at com.github.oxo42.stateless4j.StateMachine.publicFire(StateMachine.java:225)
at com.github.oxo42.stateless4j.StateMachine.fire(StateMachine.java:145)
at com.mongodb.migrator.application.migration.statemachine.MigrationStateMachine.lambda$trigger$0(MigrationStateMachine.java:88)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
2024-11-07 00:36:04,694 INFO c.m.m.a.m.s.MigrationStateMachine$1 [pool-6-thread-1] Transitioned to: FAILED
I need help as I’m stuck here