Skip to content

Instantly share code, notes, and snippets.

@gwenshap
Created March 24, 2017 20:17
Show Gist options
  • Save gwenshap/36a4ea769b837c116b90c359c5312278 to your computer and use it in GitHub Desktop.
Save gwenshap/36a4ea769b837c116b90c359c5312278 to your computer and use it in GitHub Desktop.
Create S3 connector
echo '{"name":"s3-sink-json-1", "config":{"connector.class":"io.confluent.connect.s3.S3SinkConnector", "topics":"mysql.login", "flush.size":1, "format.class":"io.confluent.connect.s3.format.json.JsonFormat","s3.bucket.name":"gwen-s3-test","storage.class":"io.confluent.connect.s3.storage.S3Storage","schema.generator.class":"io.confluent.connect.storage.hive.schema.DefaultSchemaGenerator","partitioner.class":"io.confluent.connect.storage.partitioner.DefaultPartitioner"}}' | curl -X POST -d @- http://localhost:8083/connectors --header "content-Type:application/json"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment