-
Notifications
You must be signed in to change notification settings - Fork 307
/
Copy pathstream2kafka.json
40 lines (40 loc) · 1.18 KB
/
stream2kafka.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"job": {
"setting": {
"speed": {
"channel": 1
}
},
"content": [
{
"reader": {
"name": "streamreader",
"parameter": {
"column": [
{"random": "10,1000", "type": "long"},
{"value": "1.1.1.1", "type": "string"},
{"value": 19890604.0, "type": "double"},
{"value": 19890604, "type": "long"},
{"value": 19890604, "type": "long"},
{"value": "hello world", "type": "string"},
{"value": "long text", "type": "string"},
{"value": "41.12,-71.34", "type": "string"},
{"value": "2017-05-25 11:22:33", "type": "string"}
],
"sliceRecordCount": 100
}
},
"writer": {
"name": "kafkawriter",
"parameter": {
"brokerList": "localhost:9092",
"topic": "test-1",
"partitions": 0,
"batchSize": 1000,
"column": ["col1", "col2","col3","col4","col5", "col6", "col7", "col8", "col9"]
}
}
}
]
}
}