Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mostafa-asg/68f5f29c7b73c419610ceafcf726379d to your computer and use it in GitHub Desktop.
Save mostafa-asg/68f5f29c7b73c419610ceafcf726379d to your computer and use it in GitHub Desktop.
Spark: Example of command which launches multiple workers on each slave node:
```
SPARK_WORKER_INSTANCES=3 SPARK_WORKER_CORES=2 ./sbin/start-slaves.sh
```
This will launch three worker instances on each node. Each worker instance will use two cores.
Also it is possible to manually start workers and connect to Spark’s master node. To do this use command:
```
./bin/spark-class org.apache.spark.deploy.worker.Worker spark://IP:PORT
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment