File tree Expand file tree Collapse file tree 6 files changed +41
-34
lines changed
hoptimator-operator/src/main/resources Expand file tree Collapse file tree 6 files changed +41
-34
lines changed Original file line number Diff line number Diff line change 34
34
- name : Deploy Dev Environment
35
35
run : make deploy-dev-environment
36
36
- name : Deploy Hoptimator
37
- run : make deploy deploy-samples
37
+ run : make deploy
38
38
- name : Wait for Readiness
39
- run : kubectl wait pod hoptimator --for condition=Ready --timeout=5m || kubectl describe pod hoptimator
39
+ run : kubectl wait pod hoptimator --for condition=Ready --timeout=10m
40
+ - name : Deploy Samples
41
+ run : make deploy-samples
42
+ - name : Wait for Flink Jobs
43
+ run : |
44
+ i=0
45
+ while [ $i -ne 10 ]
46
+ do
47
+ kubectl wait flinkdeployments --all --for=jsonpath={.status.lifecycleState}=STABLE --timeout=1m && break || sleep 60
48
+ i=$(($i+1))
49
+ echo "No stable Flink jobs after $i tries..."
50
+ done
40
51
- name : Integration Tests
41
52
run : make integration-tests
53
+ - name : Capture Cluster State
54
+ if : always()
55
+ run : |
56
+ kubectl describe pods
57
+ kubectl describe deployments
58
+ kubectl describe kafkas -n kafka
59
+ kubectl describe flinkdeployments
60
+ kubectl describe subscriptions
61
+ - name : Capture Hoptimator Operator Logs
62
+ if : always()
63
+ run : kubectl logs $(kubectl get pods -l app=hoptimator-operator -o name)
64
+ - name : Capture Flink Operator Logs
65
+ if : always()
66
+ run : kubectl logs $(kubectl get pods -l app.kubernetes.io/name=flink-kubernetes-operator -o name)
67
+
42
68
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- kubectl exec -it hoptimator -c hoptimator -- ./hoptimator -n " " -p " " -u " jdbc:calcite:model=/etc/config/model.yaml" " $@ "
3
+ kubectl exec -it hoptimator -c hoptimator -- ./hoptimator --isolation=TRANSACTION_NONE - n " " -p " " -u " jdbc:calcite:model=/etc/config/model.yaml" -nn hoptimator " $@ "
Original file line number Diff line number Diff line change 1
- apiVersion : hoptimator.linkedin.com/v1alpha1
2
- kind : Subscription
3
- metadata :
4
- name : ceos
5
- spec :
6
- sql : SELECT CEO, NAME AS KEY FROM DATAGEN.COMPANY
7
- database : RAWKAFKA
8
-
9
- ---
10
-
11
- apiVersion : hoptimator.linkedin.com/v1alpha1
12
- kind : Subscription
13
- metadata :
14
- name : companies
15
- spec :
16
- sql : SELECT KEY AS PAYLOAD, PAYLOAD AS KEY FROM RAWKAFKA."ceos"
17
- database : RAWKAFKA
18
-
19
- ---
20
1
21
2
apiVersion : hoptimator.linkedin.com/v1alpha1
22
3
kind : Subscription
26
7
sql : SELECT "quantity", "product_id" AS KEY FROM INVENTORY."products_on_hand"
27
8
database : RAWKAFKA
28
9
29
-
Original file line number Diff line number Diff line change 1
1
2
- !connect " jdbc:calcite:model=./model.yaml" " " " "
3
-
4
2
!set maxWidth 80
5
3
!table
6
4
!schemas
7
5
6
+ -- built-in bounded tables
8
7
SELECT * FROM DATAGEN .PERSON ;
9
8
SELECT * FROM DATAGEN .COMPANY ;
10
9
10
+ -- MySQL CDC tables
11
+ SELECT * FROM INVENTORY." products_on_hand" LIMIT 1 ;
12
+
13
+ -- MySQL CDC -> Kafka
14
+ SELECT * FROM RAWKAFKA." products" LIMIT 1 ;
15
+
Original file line number Diff line number Diff line change 1
1
2
- !connect " jdbc:calcite:model=./model.yaml" " " " "
3
-
4
- !set maxWidth 80
5
- !table
6
- !schemas
2
+ !connect " jdbc:calcite:model=/etc/config/model.yaml" " " " "
7
3
8
4
SELECT * FROM DATAGEN .PERSON ;
9
5
SELECT * FROM DATAGEN .COMPANY ;
10
-
6
+ SELECT * FROM INVENTORY. " products_on_hand " LIMIT 1 ;
Original file line number Diff line number Diff line change 8
8
imagePullPolicy: Never
9
9
flinkVersion: v1_16
10
10
flinkConfiguration:
11
- taskmanager.numberOfTaskSlots: "2 "
11
+ taskmanager.numberOfTaskSlots: "1 "
12
12
serviceAccount: flink
13
13
jobManager:
14
14
resource:
15
15
memory: "2048m"
16
- cpu: 1
16
+ cpu: . 1
17
17
taskManager:
18
18
resource:
19
19
memory: "2048m"
20
- cpu: 1
20
+ cpu: . 1
21
21
job:
22
22
entryClass: com.linkedin.hoptimator.flink.runner.FlinkRunner
23
23
args:
You can’t perform that action at this time.
0 commit comments