Skip to content

Commit a6efaa5

Browse files
authored
update spark application with config/naming changes (#304)
1 parent cd391eb commit a6efaa5

File tree

2 files changed

+30
-26
lines changed

2 files changed

+30
-26
lines changed

docs/modules/spark-k8s/examples/getting_started/getting_started.sh

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,22 @@ spec:
6363
mode: cluster
6464
mainApplicationFile: local:///stackable/spark/examples/src/main/python/pi.py
6565
driver:
66-
resources:
67-
cpu:
68-
min: "1"
69-
max: "1200m"
70-
memory:
71-
limit: "1Gi"
66+
config:
67+
resources:
68+
cpu:
69+
min: "1"
70+
max: "2"
71+
memory:
72+
limit: "1Gi"
7273
executor:
73-
instances: 3
74-
resources:
75-
cpu:
76-
min: "1"
77-
max: "1200m"
78-
memory:
79-
limit: "1Gi"
74+
replicas: 1
75+
config:
76+
resources:
77+
cpu:
78+
min: "1"
79+
max: "2"
80+
memory:
81+
limit: "1Gi"
8082
EOF
8183
# end::install-sparkapp[]
8284

docs/modules/spark-k8s/examples/getting_started/getting_started.sh.j2

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,22 @@ spec:
6363
mode: cluster
6464
mainApplicationFile: local:///stackable/spark/examples/src/main/python/pi.py
6565
driver:
66-
resources:
67-
cpu:
68-
min: "1"
69-
max: "2"
70-
memory:
71-
limit: "1Gi"
66+
config:
67+
resources:
68+
cpu:
69+
min: "1"
70+
max: "2"
71+
memory:
72+
limit: "1Gi"
7273
executor:
73-
instances: 1
74-
resources:
75-
cpu:
76-
min: "1"
77-
max: "2"
78-
memory:
79-
limit: "1Gi"
74+
replicas: 1
75+
config:
76+
resources:
77+
cpu:
78+
min: "1"
79+
max: "2"
80+
memory:
81+
limit: "1Gi"
8082
EOF
8183
# end::install-sparkapp[]
8284

0 commit comments

Comments
 (0)