- Install vagrant. Tested with version 1.4.3
- Install virtualbox. Tested with version 4.2.16 but should work with any 4.+
- Checkout this repo
git clone [email protected]:ngbinh/vagrant_jdk.git - Change to the directory
cd vagrant_jdk - Bring up the nodes
vagrant up - Wait a while, then make sure the nodes are up:
vagrant status. You should see three nodes namedspark-master,spark-worker-1andspark-worker-2running. - Access the nodes with user
spark-userand passwordspark.
Note that it will take a while to download Ubuntu Precise image at the first run. Subsequent runs should not have to re-download.
- You can change the number of nodes, their basic parameters by modifying
Vagrantfile. - You can change the JDK version by modifying
scripts/setup.sh