seethb commented on issue #10142: URL: https://github.com/apache/hudi/issues/10142#issuecomment-1820568103
Hi I have tried AVRO converter JARs from conflunet https://www.confluent.io/hub/confluentinc/kafka-connect-avro-converter and copied to our plugin directory and restarted. This is my connector config below curl -i -X POST -H "Accept:application/json" -H "Content-Type:application/json" localhost:8085/connectors/ -d '{ "name": "hudi-yb-cdcdemo1", "config": { "bootstrap.servers": "localhost:9092", "connector.class": "org.apache.hudi.connect.HoodieSinkConnector", "tasks.max": "1", "topics": "dbserver255.public.cdcdemo", "hoodie.table.name": "dbserver255-public-cdcdemo", "hoodie.table.type": "MERGE_ON_READ", "key.converter":"io.confluent.connect.avro.AvroConverter", "key.converter.schema.registry.url":"http://schema-registry:8081", "value.converter":"io.confluent.connect.avro.AvroConverter", "value.converter.schema.registry.url":"http://schema-registry:8081", "hoodie.base.path": "file:///tmp/hoodie/dbserver255-public-cdcdemo", "hoodie.datasource.write.recordkey.field": "after.sno.value", "hoodie.datasource.write.partitionpath.field": "after.name.value", "hoodie.schemaprovider.class": "org.apache.hudi.schema.SchemaRegistryProvider", "hoodie.deltastreamer.schemaprovider.registry.url": "http://localhost:8081/subjects/dbserver255.public.cdcdemo-value/versions/latest", "hoodie.kafka.commit.interval.secs": 60 } }' I am getting below error which JaR is using this method 2023-11-20 09:30:55,997] ERROR [hudi-yb-cdcdemo|task-0] Failed to start task hudi-yb-cdcdemo-0 (org.apache.kafka.connect.runtime.Worker:549) java.lang.NoSuchMethodError: io.confluent.kafka.schemaregistry.testutil.MockSchemaRegistry.validateAndMaybeGetMockScope(Ljava/util/List;)Ljava/lang/String; at io.confluent.kafka.schemaregistry.client.SchemaRegistryClientFactory.newClient(SchemaRegistryClientFactory.java:32) at io.confluent.connect.avro.AvroConverter.configure(AvroConverter.java:71) at org.apache.kafka.connect.runtime.isolation.Plugins.newConverter(Plugins.java:287) at org.apache.kafka.connect.runtime.Worker.startTask(Worker.java:519) at org.apache.kafka.connect.runtime.distributed.DistributedHerder.startTask(DistributedHerder.java:1421) at org.apache.kafka.connect.runtime.distributed.DistributedHerder.lambda$getTaskStartingCallable$22(DistributedHerder.java:1434) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750) [2023-11-20 09:30:55,998] INFO [Worker clientId=connect-1, groupId=hudi-connect-cluster] Finished starting connectors and tasks (org.apache.kafka.connect.runtime.distributed.DistributedHerder:1406) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
