-
Notifications
You must be signed in to change notification settings - Fork 0
/
temp.yaml
45 lines (44 loc) · 1.38 KB
/
temp.yaml
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
41
42
43
44
45
type: stream
kafka:
- inTopic: ecommerce-data.in
outTopic: ecommerce-data.out
hdfs: false
transform: |
def transform(record) {
def jsonObject = record
// do your transformation logic in a groovy script
return jsonObject
}
this
- inTopic: ecommerce-data.out
outTopic: ecommerce-data.err
hdfs: false
transform: |
def transform(record) {
def jsonObject = record
// do your transformation logic in a groovy script
return jsonObject
}
this
- inTopic: ecommerce-data.err
hdfsFileName: /data/ecommerce-data.json
hdfs: true
spark:
- app-resource: http://minio:9000/test-bucket/spark.jar
driver-memory: 1g
executor-memory: 2g
res-location: http://minio:9000/test-bucket/spark.jar
main-class: Main.class
job-name: E commerce data
- app-resource: http://minio:9000/test-bucket/spark.jar
driver-memory: 1g
executor-memory: 2g
res-location: http://minio:9000/test-bucket/spark.jar
main-class: Main.class
job-name: E Commerce transforms
- app-resource: http://minio:9000/test-bucket/spark.jar
driver-memory: 1g
executor-memory: 2g
res-location: http://minio:9000/test-bucket/spark.jar
main-class: Main.class
job-name: Sink Elasticsearch