{"error_code":400,"message":"Connector configuration is invalid and contains the following 3 error(s):\nUnable to read S3 objects with the provided bucket and path.\nUnable to read S3 objects with the provided bucket and path.\nUnable to read S3 objects with the provided bucket and path.\nYou can also find the above list of errors at the endpoint /connector-plugins/{connectorType}/config/validate"}
Below, CURL is throwing error while creating source connector:
curl -X POST http://localhost:9001/connectors -H "Content-Type: application/json" -d '{ "name": "my-s3-source", "config": { "connector.class": "io.confluent.connect.s3.source.S3SourceConnector", "s3.region":"ap-east-1", "topics.dir":"kafka", "tasks.max":"1", "format.class": "io.confluent.connect.s3.format.json.JsonFormat", "confluent.topic.bootstrap.servers":"SSL://kafka-fast-cp-kafka-headless:9093", "confluent.topic.replication.factor":"5", "transforms":"AddPrefix", "transforms.AddPrefix.type":"org.apache.kafka.connect.transforms.RegexRouter", "transforms.AddPrefix.regex":".*", "transforms.AddPrefix.replacement":"copy_of_$0", "s3.bucket.name": "bukcet_name" } }'
Is there any parameters am missing while creating sourceconnector.