Skip to content

Commit

Permalink
fix entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
thanh-nguyen-dang committed Jun 3, 2024
1 parent b72e7f1 commit f58684a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 30 deletions.
28 changes: 0 additions & 28 deletions kube/services/spark/spark-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,6 @@ spec:
volumeMounts:
- name: namenode-pv-storage
mountPath: /hadoop/dfs/name
command: ["/bin/bash" ]
args:
- "-c"
- |
ssh server sudo /etc/init.d/ssh start
update-ca-certificates
hdfs namenode -format
hdfs dfsadmin -safemode leave
hdfs dfs -mkdir /result
hdfs dfs -mkdir /jars
hdfs dfs -mkdir /archive
volumeClaimTemplates:
- metadata:
name: namenode-pv-storage
Expand Down Expand Up @@ -72,17 +61,6 @@ spec:
volumeMounts:
- name: datanode-pv-storage
mountPath: /hadoop/dfs/data
command: ["/bin/bash" ]
args:
- "-c"
- |
ssh server sudo /etc/init.d/ssh start
update-ca-certificates
hdfs namenode -format
hdfs dfsadmin -safemode leave
hdfs dfs -mkdir /result
hdfs dfs -mkdir /jars
hdfs dfs -mkdir /archive
volumeClaimTemplates:
- metadata:
name: datanode-pv-storage
Expand Down Expand Up @@ -314,9 +292,3 @@ spec:
envFrom:
- configMapRef:
name: hadoop-spark-config
command: ["/bin/bash" ]
args:
- "-c"
- |
ssh server sudo /etc/init.d/ssh start
update-ca-certificates
4 changes: 2 additions & 2 deletions kube/services/spark/spark-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: spark-master
name: sparkmaster
spec:
ports:
- port: 7077
Expand All @@ -73,7 +73,7 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: spark-worker
name: sparkworker
spec:
ports:
- port: 8081
Expand Down

0 comments on commit f58684a

Please sign in to comment.