Last active
August 29, 2015 14:17
-
-
Save fyrz/2baa2f10f6c4cb2f5599 to your computer and use it in GitHub Desktop.
Vagrant - Ubuntu 14.10 - Apache Spark - dev maschine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Ubuntu 14.10 Vagrant Dev machine for Apache Spark development | |
# | |
# $> vagrant box add Ubuntu14.10 https://cloud-images.ubuntu.com/vagrant/utopic/current/utopic-server-cloudimg-amd64-vagrant-disk1.box | |
# $> vagrant init Ubuntu14.10 | |
# $> vagrant up | |
# | |
# - Increase RAM to 8048M | |
# | |
# | |
# install necessary software on clean Ubuntu system | |
sudo apt-get update | |
# tools | |
sudo apt-get -y install git | |
# openjdk | |
sudo apt-get -y install openjdk-8-jdk | |
# scala | |
wget http://www.scala-lang.org/files/archive/scala-2.10.5.deb | |
sudo dpkg -i scala-2.10.5.deb | |
sudo apt-get update | |
sudo apt-get install scala | |
# install spark binary release | |
cd /vagrant && wget http://d3kbcqa49mib13.cloudfront.net/spark-1.3.0-bin-hadoop2.4.tgz | |
tar xvfz spark-1.3.0-bin-hadoop2.4.tgz | |
ln -s /vagrant/spark-1.3.0-bin-hadoop2.4 /home/vagrant/spark | |
# configure SPARK_HOME in bashrc | |
echo 'export SPARK_HOME' >> ~/.bashrc | |
echo 'SPARK_HOME=/home/vagrant/spark/' >> ~/.bashrc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment