Skip to content

Commit 2c0dc40

Browse files
authored
doc: Alternative way to start Spark Master to run benchmarks (#2072)
1 parent d8c62f3 commit 2c0dc40

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/source/contributor-guide/benchmarking_macos.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@ Start Spark in standalone mode:
6161
$SPARK_HOME/sbin/start-master.sh
6262
```
6363

64+
Note: For Apache Spark distributions installed using `brew` tool, it may happen there is no `$SPARK_HOME/sbin` folder on your machine. However it is still possible to start Apache Spark master by running command
65+
```shell
66+
$SPARK_HOME/bin/spark-class org.apache.spark.deploy.master.Master
67+
```
68+
69+
Once master has started, look for output to find Master endpoint URI, like
70+
```shell
71+
INFO Master: Starting Spark master at spark://192.168.4.142:7078
72+
```
73+
6474
Set `SPARK_MASTER` env var (host name will need to be edited):
6575

6676
```shell

0 commit comments

Comments
 (0)