-
Notifications
You must be signed in to change notification settings - Fork 0
/
file-source.json
23 lines (23 loc) · 2.7 KB
/
file-source.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"name": "local-file-source",
"config": {
"name" : "local-file-source",
"transforms" : "fromJson,rename,setschema",
"transforms.fromJson.type" : "com.github.jcustenborder.kafka.connect.json.FromJson$Value",
"transforms.fromJson.json.schema.location" : "Inline",
"transforms.fromJson.json.schema.inline" : "{\"type\":\"object\",\"required\":[],\"properties\":{\"eventId\":{\"type\":\"string\"},\"eventTime\":{\"type\":\"string\"},\"eventType\":{\"type\":\"string\"},\"sourceSystem\":{\"type\":\"string\"},\"corelationId\":{\"type\":\"string\"},\"resourceOrder\":{\"type\":\"object\",\"required\":[],\"properties\":{\"expectedCompletionDate\":{\"type\":\"string\"},\"resourceOrderItem\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"required\":[],\"properties\":{\"id\":{\"type\":\"string\"},\"resource\":{\"type\":\"object\",\"required\":[],\"properties\":{\"resourceCharacteristic\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"required\":[],\"properties\":{\"name\":{\"type\":\"string\"},\"value\":{\"type\":\"string\"}}}},\"relatedEntity\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"required\":[],\"properties\":{\"id\":{\"type\":\"string\"},\"areaCode\":{\"type\":\"string\"},\"telephoneNumber\":{\"type\":\"string\"},\"numberPortingResultCode\":{\"type\":\"string\"}}}},\"relatedParty\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"required\":[],\"properties\":{\"lineOwner\":{\"type\":\"string\"},\"dtagLineNo\":{\"type\":\"string\"},\"dtagContactNumber\":{\"type\":\"string\"},\"dtagTech\":{\"type\":\"string\"},\"product\":{\"type\":\"string\"},\"dtagProduct\":{\"type\":\"string\"},\"role\":{\"type\":\"string\"}}}}}},\"reason\":{\"type\":\"string\"},\"errorMessage\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"required\":[],\"properties\":{\"code\":{\"type\":\"string\"},\"message\":{\"type\":\"string\"},\"additionalInfoCode\":{\"type\":\"string\"},\"additionalInfoMessage\":{\"type\":\"string\"},\"additionalInfoCorrectionValue\":{\"type\":\"string\"}}}}}}}}}}}",
"transforms.rename.type": "kafka.connect.smt.ReplaceNamespace$Value",
"transforms.rename.namespace": "xx.yy.zz",
"transforms.rename.rename": "a:b",
"transforms.setschema.type": "org.apache.kafka.connect.transforms.SetSchemaMetadata$Value",
"transforms.setschema.schema.name": "xx.yy.zz.NotifyExportResponseAvro",
"connector.class": "FileStreamSource",
"tasks.max": "1",
"file": "/files/data-str.json",
"topic": "avro-data",
"value.converter": "io.confluent.connect.avro.AvroConverter",
"value.converter.schema.registry.url": "http://schema-registry:8081",
"value.converter.connect.meta.data" : "false",
"value.converter.enhanced.avro.schema.support" : "true"
}
}