Skip to content

Commit

Permalink
fix environment variables and ports
Browse files Browse the repository at this point in the history
  • Loading branch information
thanh-nguyen-dang committed Jun 5, 2024
1 parent ff7e3c9 commit f75269f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
1 change: 1 addition & 0 deletions kube/services/spark/config-map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ data:
MAPRED_CONF_mapreduce_framework_name: yarn
HADOOP_HOME: /hadoop
SPARK_HOME: /spark

11 changes: 11 additions & 0 deletions kube/services/spark/spark-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,11 @@ spec:
envFrom:
- configMapRef:
name: hadoop-spark-config
env:
- name: SPARK_MASTER
value: spark-master
- name: SPARK_MASTER_PORT
value: 7077
imagePullPolicy: Always

---
Expand Down Expand Up @@ -290,3 +295,9 @@ spec:
- configMapRef:
name: hadoop-spark-config
imagePullPolicy: Always
env:
- name: SPARK_MASTER
value: spark://spark-master:7077
- name: SPARK_MASTER_PORT
value: 8081

12 changes: 6 additions & 6 deletions kube/services/spark/spark-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
port: 9000
targetPort: 9000
name: hdfs
type: ClusterIP
clusterIP: None
selector:
app: namenode

Expand All @@ -24,7 +24,7 @@ spec:
port: 50010
targetPort: 50010
name: data
type: ClusterIP
clusterIP: None
selector:
app: datanode

Expand All @@ -40,7 +40,7 @@ spec:
port: 8088
targetPort: 8088
name: resource
type: ClusterIP
clusterIP: None
selector:
app: resourcemanager

Expand All @@ -56,7 +56,7 @@ spec:
port: 8042
targetPort: 8042
name: node
type: ClusterIP
clusterIP: None
selector:
app: nodemanager

Expand All @@ -80,7 +80,7 @@ spec:
protocol: TCP
port: 6066
targetPort: 6066
type: ClusterIP
clusterIP: None
selector:
app: spark-master

Expand All @@ -96,6 +96,6 @@ spec:
protocol: TCP
port: 8081
targetPort: 8081
type: ClusterIP
clusterIP: None
selector:
app: spark-worker

0 comments on commit f75269f

Please sign in to comment.