File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -8,20 +8,23 @@ $HADOOP_HOME/sbin/start-yarn.sh
8
8
sleep 5
9
9
10
10
if [[ $1 = " start" ]]; then
11
- if [[ $2 = " master-node" ]]; then
12
- /sbin/spark-3.1.1-bin-without-hadoop/sbin/start-master.sh
11
+ if [[ $2 = " master-node" ]]; then
12
+ /sbin/spark-3.1.1-bin-without-hadoop/sbin/start-master.sh
13
+ sleep infinity
14
+ exit
15
+ fi
16
+
17
+ # Sleeps to prevent connection issues with master
18
+ sleep 5
19
+ /sbin/spark-3.1.1-bin-without-hadoop/sbin/start-worker.sh master-node:7077
13
20
sleep infinity
14
21
exit
15
- fi
16
- /sbin/spark-3.1.1-bin-without-hadoop/sbin/start-worker.sh master-node:7077
17
- sleep infinity
18
- exit
19
22
fi
20
23
21
24
if [[ $1 = " stop" ]]; then
22
- if [[ $2 = " master-node" ]]; then
23
- /sbin/spark-3.1.1-bin-without-hadoop/sbin/stop-master.sh
24
- exit
25
- fi
26
- /sbin/spark-3.1.1-bin-without-hadoop/sbin/stop-worker.sh
25
+ if [[ $2 = " master-node" ]]; then
26
+ /sbin/spark-3.1.1-bin-without-hadoop/sbin/stop-master.sh
27
+ exit
28
+ fi
29
+ /sbin/spark-3.1.1-bin-without-hadoop/sbin/stop-worker.sh
27
30
fi
You can’t perform that action at this time.
0 commit comments