File tree Expand file tree Collapse file tree 11 files changed +64
-76
lines changed
Expand file tree Collapse file tree 11 files changed +64
-76
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ metadata:
55 name : spark-pi-s3-1
66spec :
77 sparkImage :
8- productVersion : 3.5.6
8+ productVersion : 4.0.0
99 pullPolicy : IfNotPresent
1010 mode : cluster
1111 mainClass : org.apache.spark.examples.SparkPi
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ metadata:
55 name : spark-history
66spec :
77 image :
8- productVersion : 3.5.6
8+ productVersion : 4.0.0
99 logFileDirectory : # <1>
1010 s3 :
1111 prefix : eventlogs/ # <2>
Original file line number Diff line number Diff line change 11---
22apiVersion : v1
3- kind : PersistentVolume
3+ kind : PersistentVolume # <1>
44metadata :
5- name : pv-ksv # <1>
5+ name : pv-ksv
66spec :
77 storageClassName : standard
88 accessModes :
@@ -13,31 +13,31 @@ spec:
1313 path : /some-host-location
1414---
1515apiVersion : v1
16- kind : PersistentVolumeClaim
16+ kind : PersistentVolumeClaim # <2>
1717metadata :
18- name : pvc-ksv # <2>
18+ name : pvc-ksv
1919spec :
20- volumeName : pv-ksv # <1 >
20+ volumeName : pv-ksv # <3 >
2121 accessModes :
2222 - ReadWriteOnce
2323 resources :
2424 requests :
2525 storage : 1Gi
2626---
2727apiVersion : batch/v1
28- kind : Job
28+ kind : Job # <4>
2929metadata :
3030 name : aws-deps
3131spec :
3232 template :
3333 spec :
3434 restartPolicy : Never
3535 volumes :
36- - name : job-deps # <3>
36+ - name : job-deps
3737 persistentVolumeClaim :
38- claimName : pvc-ksv # <2 >
38+ claimName : pvc-ksv # <5 >
3939 containers :
4040 - name : aws-deps
4141 volumeMounts :
42- - name : job-deps # <4>
42+ - name : job-deps
4343 mountPath : /stackable/spark/dependencies
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ metadata:
66 namespace : default
77spec :
88 sparkImage :
9- productVersion : 3.5.6
9+ productVersion : 4.0.0
1010 mode : cluster
1111 mainApplicationFile : s3a://stackable-spark-k8s-jars/jobs/ny-tlc-report-1.1.0.jar # <3>
1212 mainClass : tech.stackable.demo.spark.NYTLCReport
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ metadata:
77spec :
88 image : oci.stackable.tech/stackable/ny-tlc-report:0.2.0 # <1>
99 sparkImage :
10- productVersion : 3.5.6
10+ productVersion : 4.0.0
1111 mode : cluster
1212 mainApplicationFile : local:///stackable/spark/jobs/ny_tlc_report.py # <2>
1313 args :
Original file line number Diff line number Diff line change @@ -6,28 +6,30 @@ metadata:
66 namespace : default
77spec :
88 sparkImage :
9- productVersion : 3.5.6
9+ productVersion : 4.0.0
1010 mode : cluster
11- mainApplicationFile : s3a://stackable-spark-k8s-jars/jobs/ny-tlc-report-1.0-SNAPSHOT .jar # <1>
11+ mainApplicationFile : s3a://my-bucket/app .jar # <1>
1212 mainClass : org.example.App # <2>
13- args :
14- - " 's3a://nyc-tlc/trip data/yellow_tripdata_2021-07.csv'"
1513 sparkConf : # <3>
16- " spark.hadoop.fs.s3a.aws.credentials.provider " : " org.apache.hadoop.fs.s3a.AnonymousAWSCredentialsProvider"
1714 " spark.driver.extraClassPath " : " /dependencies/jars/*"
1815 " spark.executor.extraClassPath " : " /dependencies/jars/*"
1916 volumes :
2017 - name : job-deps # <4>
2118 persistentVolumeClaim :
2219 claimName : pvc-ksv
23- driver :
20+ job :
2421 config :
2522 volumeMounts :
2623 - name : job-deps
2724 mountPath : /dependencies # <5>
25+ driver :
26+ config :
27+ volumeMounts :
28+ - name : job-deps
29+ mountPath : /dependencies # <6>
2830 executor :
2931 replicas : 3
3032 config :
3133 volumeMounts :
3234 - name : job-deps
33- mountPath : /dependencies # <5 >
35+ mountPath : /dependencies # <7 >
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ metadata:
55 name : example-sparkapp-s3-private
66spec :
77 sparkImage :
8- productVersion : 3.5.6
8+ productVersion : 4.0.0
99 mode : cluster
1010 mainApplicationFile : s3a://my-bucket/spark-examples.jar # <1>
1111 mainClass : org.apache.spark.examples.SparkPi # <2>
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ metadata:
66 namespace : default
77spec :
88 sparkImage :
9- productVersion : 3.5.6
9+ productVersion : 4.0.0
1010 mode : cluster
1111 mainApplicationFile : local:///stackable/spark/examples/src/main/python/streaming/hdfs_wordcount.py
1212 args :
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ metadata:
5656 namespace: default
5757spec:
5858 sparkImage:
59- productVersion: 3.5.6
59+ productVersion: 4.0.0
6060 mode: cluster
6161 mainApplicationFile: local:///stackable/spark/examples/src/main/python/pi.py
6262 driver:
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ metadata:
5656 namespace: default
5757spec:
5858 sparkImage:
59- productVersion: 3.5.6
59+ productVersion: 4.0.0
6060 mode: cluster
6161 mainApplicationFile: local:///stackable/spark/examples/src/main/python/pi.py
6262 driver:
You can’t perform that action at this time.
0 commit comments