Prerequisites
Assuming you have 3 nodes: node1, node2, node3
, ensure the hosts file contains the following entries on all nodes:
1 2 3 |
|
Be sure replace 192.168.x.x
with the actual IPs for each node.
Get Spark
Download binaries from http://spark.apache.org/downloads.html and extract it to /opt/
.
Spark Master
Start the master process on node1
1 2 |
|
Spark Workers
Start worker processes on each node:
1 2 |
|
Check the Spark UI at http://node1:8080
to make sure all workers have registered with the master.