Skip to content

Commit

Permalink
#OBS-I338 spark worker fixes (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravismula authored Nov 27, 2024
1 parent d6a49f6 commit 35c4370
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ spec:
- |
# Wait for the Spark pod to be ready
SPARK_POD=$(kubectl get pods -l app.kubernetes.io/name=spark,app.kubernetes.io/component=master -o jsonpath='{.items[0].metadata.name}')
kubectl exec -it $SPARK_POD -- bash -c "/opt/bitnami/spark/bin/spark-submit --master=local[*] --conf spark.pyspark.driver.python={{ .Values.python_path }} --conf spark.pyspark.python={{ .Values.python_path }} --jars /data/connectors/{{ .Values.connector_source }}/libs/\* /data/connectors/{{ .Values.connector_source }}/{{ .Values.main_file }} -f /data/conf/connectors-python-config.yaml -c {{ .Values.instance_id }}"
kubectl exec -it $SPARK_POD -- bash -c "/opt/bitnami/spark/bin/spark-submit --master={{ .Values.spark.master.host }} --conf spark.pyspark.driver.python={{ .Values.python_path }} --conf spark.pyspark.python={{ .Values.python_path }} --jars /data/connectors/{{ .Values.connector_source }}/libs/\* /data/connectors/{{ .Values.connector_source }}/{{ .Values.main_file }} -f /data/conf/connectors-python-config.yaml -c {{ .Values.instance_id }}"
{{- end }}
{{- with .Values.sidecars }}
{{- toYaml . | nindent 12 }}
Expand Down
8 changes: 4 additions & 4 deletions command-service/helm-charts/spark-connector-cron/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ commonAnnotations: {}

podAnnotations: {}

podSecurityContext: {}
# runAsNonRoot: true
# runAsUser: 1001
# fsGroup: 1001
podSecurityContext:
runAsNonRoot: true
runAsUser: 1001
fsGroup: 1001

securityContext: {}
# readOnlyRootFilesystem: false
Expand Down

0 comments on commit 35c4370

Please sign in to comment.