Repository: incubator-myriad
Updated Branches:
  refs/heads/master 2ce260e07 -> 1c3857a8d


http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/1c3857a8/vagrant/mesos/virtualbox/provisioning/install_hadoop.sh
----------------------------------------------------------------------
diff --git a/vagrant/mesos/virtualbox/provisioning/install_hadoop.sh 
b/vagrant/mesos/virtualbox/provisioning/install_hadoop.sh
deleted file mode 100644
index fe5c2a0..0000000
--- a/vagrant/mesos/virtualbox/provisioning/install_hadoop.sh
+++ /dev/null
@@ -1,115 +0,0 @@
-#!/bin/bash -v
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# $1 is HADOOP_VERSION
-set -e
-
-apt-get update
-
-apt-get install -y openssh-server
-apt-get install -y tar
-apt-get install -y gzip
-
-# Add hduser user and hadoop group
-
-if [ `/bin/egrep  -i "^hadoop:" /etc/group` ]; then
-   echo "Group hadoop already exists"
-else
-  echo "Adding hadoop group"
-  addgroup hadoop
-fi
-
-
-if [ `/bin/egrep  -i "^hduser:" /etc/passwd` ]; then
-  echo "User hduser already exists"
-else
-  echo "creating hduser in group hadoop"
-  adduser --ingroup hadoop --disabled-password --gecos "" --home /home/hduser 
hduser
-  adduser hduser sudo
-fi
-
-# Setup password-less auth
-sudo -u hduser sh -c "mkdir -p /home/hduser/.ssh"
-sudo -u hduser sh -c "chmod 700 /home/hduser/.ssh"
-sudo -u hduser sh -c "yes | ssh-keygen -t rsa -N '' -f 
/home/hduser/.ssh/id_rsa"
-sudo -u hduser sh -c 'cat /home/hduser/.ssh/id_rsa.pub >> 
/home/hduser/.ssh/authorized_keys'
-#sudo -u hduser sh -c "ssh-keyscan -H $1 >> /home/hduser/.ssh/known_hosts"
-sudo -u hduser sh -c "ssh-keyscan -H localhost >> 
/home/hduser/.ssh/known_hosts"
-#sudo -u hduser sh -c "ssh-keyscan -H $2 >> /home/hduser/.ssh/known_hosts"
-
-# Download Hadoop
-HADOOP_VER="$1"
-cd ~
-if [ ! -f /tmp/hadoop-${HADOOP_VER}.tar.gz ]; then
-       wget 
http://apache.osuosl.org/hadoop/common/hadoop-${HADOOP_VER}/hadoop-${HADOOP_VER}.tar.gz
 -O /tmp/hadoop-${HADOOP_VER}.tar.gz
-fi
-
-sudo tar ixzf /tmp/hadoop-${HADOOP_VER}.tar.gz -C /usr/local
-cd /usr/local
-rm -rf hadoop
-sudo mv -f hadoop-${HADOOP_VER} hadoop
-sudo chown -R hduser:hadoop hadoop
-
-# Init bashrc with hadoop env variables
-sudo sh -c 'echo export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 >> 
/home/hduser/.bashrc'
-sudo sh -c 'echo export HADOOP_INSTALL=/usr/local/hadoop >> 
/home/hduser/.bashrc'
-sudo sh -c 'echo export PATH=\$PATH:\$HADOOP_INSTALL/bin >> 
/home/hduser/.bashrc'
-sudo sh -c 'echo export PATH=\$PATH:\$HADOOP_INSTALL/sbin >> 
/home/hduser/.bashrc'
-sudo sh -c 'echo export HADOOP_MAPRED_HOME=\$HADOOP_INSTALL >> 
/home/hduser/.bashrc'
-sudo sh -c 'echo export HADOOP_COMMON_HOME=\$HADOOP_INSTALL >> 
/home/hduser/.bashrc'
-sudo sh -c 'echo export HADOOP_HDFS_HOME=\$HADOOP_INSTALL >> 
/home/hduser/.bashrc'
-sudo sh -c 'echo export YARN_HOME=\$HADOOP_INSTALL >> /home/hduser/.bashrc'
-sudo sh -c 'echo export 
HADOOP_COMMON_LIB_NATIVE_DIR=\$\{HADOOP_INSTALL\}/lib/native >> 
/home/hduser/.bashrc'
-sudo sh -c 'echo export 
HADOOP_OPTS=\"-Djava.library.path=\$HADOOP_INSTALL/lib\" >> 
/home/hduser/.bashrc'
-# hit the vagrant user with the same thing
-sudo sh -c 'echo export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 >> 
/home/vagrant/.bashrc'
-sudo sh -c 'echo export HADOOP_INSTALL=/usr/local/hadoop >> 
/home/vagrant/.bashrc'
-sudo sh -c 'echo export PATH=\$PATH:\$HADOOP_INSTALL/bin >> 
/home/vagrant/.bashrc'
-sudo sh -c 'echo export PATH=\$PATH:\$HADOOP_INSTALL/sbin >> 
/home/vagrant/.bashrc'
-sudo sh -c 'echo export HADOOP_MAPRED_HOME=\$HADOOP_INSTALL >> 
/home/vagrant/.bashrc'
-sudo sh -c 'echo export HADOOP_COMMON_HOME=\$HADOOP_INSTALL >> 
/home/vagrant/.bashrc'
-sudo sh -c 'echo export HADOOP_HDFS_HOME=\$HADOOP_INSTALL >> 
/home/vagrant/.bashrc'
-sudo sh -c 'echo export YARN_HOME=\$HADOOP_INSTALL >> /home/vagrant/.bashrc'
-sudo sh -c 'echo export 
HADOOP_COMMON_LIB_NATIVE_DIR=\$\{HADOOP_INSTALL\}/lib/native >> 
/home/vagrant/.bashrc'
-sudo sh -c 'echo export 
HADOOP_OPTS=\"-Djava.library.path=\$HADOOP_INSTALL/lib\" >> 
/home/vagrant/.bashrc'
-
-
-# Modify JAVA_HOME in hadoop-env
-cd /usr/local/hadoop/etc/hadoop
-sudo -u hduser sed -i.bak 
s=\${JAVA_HOME}=//usr/lib/jvm/java-7-openjdk-amd64/=g hadoop-env.sh
-pwd
-
-/usr/local/hadoop/bin/hadoop version
-
-# Update configuration
-sudo -u hduser sed -i.bak 
's=<configuration>=<configuration>\<property>\<name>fs\.default\.name\</name>\<value>hdfs://localhost:9000\</value>\</property>=g'
 core-site.xml
-#sudo -u hduser sed -i.bak 
's=<configuration>=<configuration>\<property>\<name>fs\.default\.name\</name>\<value>hdfs://'"$1"':9000\</value>\</property>=g'
 core-site.xml
-sudo -u hduser sed -i.bak 
's=<configuration>=<configuration>\<property>\<name>yarn\.nodemanager\.aux-services</name>\<value>mapreduce_shuffle</value>\</property>\<property>\<name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name>\<value>org\.apache\.hadoop\.mapred\.ShuffleHandler</value>\</property>=g'
 yarn-site.xml
-
-sudo -u hduser cp mapred-site.xml.template mapred-site.xml
-sudo -u hduser sed -i.bak 
's=<configuration>=<configuration>\<property>\<name>mapreduce\.framework\.name</name>\<value>yarn</value>\</property>=g'
 mapred-site.xml
-
-cd ~
-sudo -u hduser sh -c 'mkdir -p ~hduser/mydata/hdfs/namenode'
-sudo -u hduser sh -c 'mkdir -p ~hduser/mydata/hdfs/datanode'
-sudo chown -R hduser:hadoop ~hduser/mydata
-
-cd /usr/local/hadoop/etc/hadoop
-sudo -u hduser sed -i.bak 
's=<configuration>=<configuration>\<property>\<name>dfs\.replication</name>\<value>1\</value>\</property>\<property>\<name>dfs\.namenode\.name\.dir</name>\<value>file:/home/hduser/mydata/hdfs/namenode</value>\</property>\<property>\<name>dfs\.datanode\.data\.dir</name>\<value>file:/home/hduser/mydata/hdfs/datanode</value>\</property>\<property>\<name>dfs\.namenode\.datanode\.registration\.ip-hostname-check</name>\<value>false</value>\</property>=g'
 hdfs-site.xml

http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/1c3857a8/vagrant/mesos/virtualbox/provisioning/install_mesos.sh
----------------------------------------------------------------------
diff --git a/vagrant/mesos/virtualbox/provisioning/install_mesos.sh 
b/vagrant/mesos/virtualbox/provisioning/install_mesos.sh
deleted file mode 100644
index d3521f5..0000000
--- a/vagrant/mesos/virtualbox/provisioning/install_mesos.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash -v
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-PREFIX="Mesos Provisioner: "
-set -e
-
-echo "${PREFIX} Installing pre-reqs..."
-# For Mesos
-apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF
-DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
-CODENAME=$(lsb_release -cs)
-echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main" | sudo tee 
/etc/apt/sources.list.d/mesosphere.list
-apt-get -y update
-
-apt-get -y install libcurl3
-apt-get -y install zookeeperd
-apt-get -y install aria2
-apt-get -y install ssh
-apt-get -y install rsync
-
-apt-get -y install mesos=0.24.1-0.2.35.ubuntu1404

http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/1c3857a8/vagrant/mesos/virtualbox/provisioning/shutdown.sh
----------------------------------------------------------------------
diff --git a/vagrant/mesos/virtualbox/provisioning/shutdown.sh 
b/vagrant/mesos/virtualbox/provisioning/shutdown.sh
deleted file mode 100644
index 2012b84..0000000
--- a/vagrant/mesos/virtualbox/provisioning/shutdown.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/bash -v
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-set -e
-
-# Stop HistoryServer
-sudo -u hduser sh -c '/usr/local/hadoop/sbin/mr-jobhistory-daemon.sh stop 
historyserver'
-
-# Stop DataNode
-sudo -u hduser sh -c '/usr/local/hadoop/sbin/hadoop-daemons.sh stop datanode'
-
-# Stop NameNode
-sudo -u hduser sh -c '/usr/local/hadoop/sbin/hadoop-daemon.sh stop namenode'

http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/1c3857a8/vagrant/mesos/virtualbox/provisioning/start_datanode.sh
----------------------------------------------------------------------
diff --git a/vagrant/mesos/virtualbox/provisioning/start_datanode.sh 
b/vagrant/mesos/virtualbox/provisioning/start_datanode.sh
deleted file mode 100644
index e391187..0000000
--- a/vagrant/mesos/virtualbox/provisioning/start_datanode.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash -v
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-set -e
-
-# Start DataNode
-sudo -u hduser sh -c '/usr/local/hadoop/sbin/hadoop-daemons.sh start datanode'

http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/1c3857a8/vagrant/mesos/virtualbox/provisioning/start_historyserver.sh
----------------------------------------------------------------------
diff --git a/vagrant/mesos/virtualbox/provisioning/start_historyserver.sh 
b/vagrant/mesos/virtualbox/provisioning/start_historyserver.sh
deleted file mode 100644
index 88adfca..0000000
--- a/vagrant/mesos/virtualbox/provisioning/start_historyserver.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash -v
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-set -e
-
-sudo -u hduser sh -c '/usr/local/hadoop/sbin/mr-jobhistory-daemon.sh start 
historyserver'

http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/1c3857a8/vagrant/mesos/virtualbox/provisioning/start_mesos_master.sh
----------------------------------------------------------------------
diff --git a/vagrant/mesos/virtualbox/provisioning/start_mesos_master.sh 
b/vagrant/mesos/virtualbox/provisioning/start_mesos_master.sh
deleted file mode 100644
index 4ff48db..0000000
--- a/vagrant/mesos/virtualbox/provisioning/start_mesos_master.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash -v
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-echo "zk://127.0.0.1:2181/mesos" > /etc/mesos/zk
-#echo "$@ master" >> /etc/hosts
-echo "10.141.141.20 master" >> /etc/hosts
-echo 10.141.141.20 | sudo tee /etc/mesos-master/ip
-echo master | sudo tee /etc/mesos-master/hostname
-
-echo "export HADOOP_HOME=/usr/local/hadoop" >> /root/.bashrc
-echo "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64" >> /root/.bashrc
-echo "export PATH=$PATH:$HADOOP_HOME/bin:$JAVA_HOME/bin" >> /root/.bashrc
-
-# keep mesos slave from starting here
-echo manual | sudo tee /etc/init/mesos-slave.override
-
-sudo start mesos-master

http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/1c3857a8/vagrant/mesos/virtualbox/provisioning/start_mesos_slave.sh
----------------------------------------------------------------------
diff --git a/vagrant/mesos/virtualbox/provisioning/start_mesos_slave.sh 
b/vagrant/mesos/virtualbox/provisioning/start_mesos_slave.sh
deleted file mode 100644
index 2abbec9..0000000
--- a/vagrant/mesos/virtualbox/provisioning/start_mesos_slave.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash -v
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-set -e
-
-echo "10.141.141.20" > /etc/mesos-slave/ip
-echo "cgroups/cpu,cgroups/mem" > /etc/mesos-slave/isolation
-echo "mesos" > /etc/mesos-slave/containerizers
-echo "/usr/local/hadoop" > /etc/mesos-slave/hadoop_home
-
-echo "export HADOOP_HOME=/usr/local/hadoop" >> /root/.bashrc
-echo "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64" >> /root/.bashrc
-
-echo "zk://127.0.0.1:2181/mesos" | sudo tee /etc/mesos/zk
-echo "localhost" | sudo tee /etc/mesos-slave/hostname
-echo "cpus:2;mem:2048" | sudo tee /etc/mesos-slave/resources
-echo manual | sudo tee /etc/init/mesos-master.override
-echo manual | sudo tee /etc/init/zookeeper.override
-
-
-start mesos-slave

http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/1c3857a8/vagrant/mesos/virtualbox/provisioning/start_namenode.sh
----------------------------------------------------------------------
diff --git a/vagrant/mesos/virtualbox/provisioning/start_namenode.sh 
b/vagrant/mesos/virtualbox/provisioning/start_namenode.sh
deleted file mode 100644
index d82b260..0000000
--- a/vagrant/mesos/virtualbox/provisioning/start_namenode.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash -v
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-set -e
-
-# Start NameNode
-sudo -u hduser sh -c '/usr/local/hadoop/sbin/hadoop-daemon.sh start namenode'
-
-# Open up the HDFS permissions
-sudo -u hduser sh -c "/usr/local/hadoop/bin/hadoop fs -chmod 777 /"

http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/1c3857a8/vagrant/virtualbox/mesos/Vagrantfile
----------------------------------------------------------------------
diff --git a/vagrant/virtualbox/mesos/Vagrantfile 
b/vagrant/virtualbox/mesos/Vagrantfile
new file mode 100644
index 0000000..4ccc8a0
--- /dev/null
+++ b/vagrant/virtualbox/mesos/Vagrantfile
@@ -0,0 +1,79 @@
+# -*- mode: ruby -*-
+# # vi: set ft=ruby :
+
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+VAGRANTFILE_API_VERSION = "2"
+
+HADOOP_VERSION="2.7.0"
+PRIVATE_IP="10.141.141.20"
+
+Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
+  config.vm.box = "ubuntu/trusty64"
+  config.vm.box_url = "https://vagrantcloud.com/ubuntu/boxes/trusty64";
+  config.vm.network :private_network, ip: "#{PRIVATE_IP}"
+
+  # Configure VM resources
+  config.vm.provider :virtualbox do |vb|
+    vb.name = "myriad-dev"
+    vb.customize ["modifyvm", :id, "--memory", "4096"]
+    vb.customize ["modifyvm", :id, "--cpus", "2"]
+    vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
+    vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
+  end
+
+  if Vagrant.has_plugin?("vagrant-cachier")
+    # Configure cached packages to be shared between instances of the same 
base box.
+    config.cache.scope = :box
+  end
+
+  # Forward mesos master and slave ports
+  config.vm.network "forwarded_port", guest: 5005, host: 5005
+  config.vm.network "forwarded_port", guest: 5050, host: 5050
+  config.vm.network "forwarded_port", guest: 5051, host: 5051
+
+  # Forward myriad web and admin ports
+  config.vm.network "forwarded_port", guest: 8080, host: 8080
+  config.vm.network "forwarded_port", guest: 8081, host: 8081
+
+  # Forward YARN/Hadoop ports
+  config.vm.network "forwarded_port", guest: 50070, host: 50070
+  config.vm.network "forwarded_port", guest: 50075, host: 50075
+  config.vm.network "forwarded_port", guest: 8088, host: 8088
+  config.vm.network "forwarded_port", guest: 8042, host: 8042
+  config.vm.network "forwarded_port", guest: 19888, host: 19888
+  config.vm.network "forwarded_port", guest: 8192, host: 8192
+  config.vm.network "forwarded_port", guest: 2181, host: 2181
+
+  # install software
+  config.vm.provision "shell", path: "provisioning/install_default_jdk.sh"
+  config.vm.provision "shell", path: "provisioning/install_mesos.sh"
+  config.vm.provision "shell", path: "provisioning/install_docker.sh"
+  config.vm.provision "shell", path: "provisioning/install_hadoop.sh", args: 
["#{HADOOP_VERSION}"]
+
+  # start things up
+  config.vm.provision "shell", path: "provisioning/start_mesos_master.sh"
+  config.vm.provision "shell", path: "provisioning/start_mesos_slave.sh"
+  config.vm.provision "shell", path: "provisioning/format_namenode.sh"
+  config.vm.provision "shell", path: "provisioning/start_namenode.sh"
+  config.vm.provision "shell", path: "provisioning/start_datanode.sh"
+  config.vm.provision "shell", path: "provisioning/start_historyserver.sh"
+
+end

http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/1c3857a8/vagrant/virtualbox/mesos/provisioning/format_namenode.sh
----------------------------------------------------------------------
diff --git a/vagrant/virtualbox/mesos/provisioning/format_namenode.sh 
b/vagrant/virtualbox/mesos/provisioning/format_namenode.sh
new file mode 100644
index 0000000..e944a41
--- /dev/null
+++ b/vagrant/virtualbox/mesos/provisioning/format_namenode.sh
@@ -0,0 +1,23 @@
+#!/bin/bash -v
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+set -e
+
+# Format NameNode
+sudo -u hduser sh -c 'yes Y | /usr/local/hadoop/bin/hdfs namenode -format'

http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/1c3857a8/vagrant/virtualbox/mesos/provisioning/install_default_jdk.sh
----------------------------------------------------------------------
diff --git a/vagrant/virtualbox/mesos/provisioning/install_default_jdk.sh 
b/vagrant/virtualbox/mesos/provisioning/install_default_jdk.sh
new file mode 100644
index 0000000..0a85c3c
--- /dev/null
+++ b/vagrant/virtualbox/mesos/provisioning/install_default_jdk.sh
@@ -0,0 +1,32 @@
+#!/bin/bash -v
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+PREFIX="JAVA Default JDK Provisioner:"
+set -e
+
+# For installing Java 8
+apt-get -y update
+apt-get -y install default-jdk
+
+if $(test -e /usr/lib/libjvm.so); then
+  rm /usr/lib/libjvm.so
+fi
+
+ln -s /usr/lib/jvm/default-java/jre/lib/amd64/server/libjvm.so 
/usr/lib/libjvm.so

http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/1c3857a8/vagrant/virtualbox/mesos/provisioning/install_docker.sh
----------------------------------------------------------------------
diff --git a/vagrant/virtualbox/mesos/provisioning/install_docker.sh 
b/vagrant/virtualbox/mesos/provisioning/install_docker.sh
new file mode 100644
index 0000000..a0a214f
--- /dev/null
+++ b/vagrant/virtualbox/mesos/provisioning/install_docker.sh
@@ -0,0 +1,25 @@
+#!/bin/bash -v
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+set -e
+
+#Install docker
+echo "deb http://http.debian.net/debian jessie-backports main" >> 
/etc/apt/sources.list
+apt-get update
+apt-get -y install docker.io

http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/1c3857a8/vagrant/virtualbox/mesos/provisioning/install_hadoop.sh
----------------------------------------------------------------------
diff --git a/vagrant/virtualbox/mesos/provisioning/install_hadoop.sh 
b/vagrant/virtualbox/mesos/provisioning/install_hadoop.sh
new file mode 100644
index 0000000..fe5c2a0
--- /dev/null
+++ b/vagrant/virtualbox/mesos/provisioning/install_hadoop.sh
@@ -0,0 +1,115 @@
+#!/bin/bash -v
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# $1 is HADOOP_VERSION
+set -e
+
+apt-get update
+
+apt-get install -y openssh-server
+apt-get install -y tar
+apt-get install -y gzip
+
+# Add hduser user and hadoop group
+
+if [ `/bin/egrep  -i "^hadoop:" /etc/group` ]; then
+   echo "Group hadoop already exists"
+else
+  echo "Adding hadoop group"
+  addgroup hadoop
+fi
+
+
+if [ `/bin/egrep  -i "^hduser:" /etc/passwd` ]; then
+  echo "User hduser already exists"
+else
+  echo "creating hduser in group hadoop"
+  adduser --ingroup hadoop --disabled-password --gecos "" --home /home/hduser 
hduser
+  adduser hduser sudo
+fi
+
+# Setup password-less auth
+sudo -u hduser sh -c "mkdir -p /home/hduser/.ssh"
+sudo -u hduser sh -c "chmod 700 /home/hduser/.ssh"
+sudo -u hduser sh -c "yes | ssh-keygen -t rsa -N '' -f 
/home/hduser/.ssh/id_rsa"
+sudo -u hduser sh -c 'cat /home/hduser/.ssh/id_rsa.pub >> 
/home/hduser/.ssh/authorized_keys'
+#sudo -u hduser sh -c "ssh-keyscan -H $1 >> /home/hduser/.ssh/known_hosts"
+sudo -u hduser sh -c "ssh-keyscan -H localhost >> 
/home/hduser/.ssh/known_hosts"
+#sudo -u hduser sh -c "ssh-keyscan -H $2 >> /home/hduser/.ssh/known_hosts"
+
+# Download Hadoop
+HADOOP_VER="$1"
+cd ~
+if [ ! -f /tmp/hadoop-${HADOOP_VER}.tar.gz ]; then
+       wget 
http://apache.osuosl.org/hadoop/common/hadoop-${HADOOP_VER}/hadoop-${HADOOP_VER}.tar.gz
 -O /tmp/hadoop-${HADOOP_VER}.tar.gz
+fi
+
+sudo tar ixzf /tmp/hadoop-${HADOOP_VER}.tar.gz -C /usr/local
+cd /usr/local
+rm -rf hadoop
+sudo mv -f hadoop-${HADOOP_VER} hadoop
+sudo chown -R hduser:hadoop hadoop
+
+# Init bashrc with hadoop env variables
+sudo sh -c 'echo export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 >> 
/home/hduser/.bashrc'
+sudo sh -c 'echo export HADOOP_INSTALL=/usr/local/hadoop >> 
/home/hduser/.bashrc'
+sudo sh -c 'echo export PATH=\$PATH:\$HADOOP_INSTALL/bin >> 
/home/hduser/.bashrc'
+sudo sh -c 'echo export PATH=\$PATH:\$HADOOP_INSTALL/sbin >> 
/home/hduser/.bashrc'
+sudo sh -c 'echo export HADOOP_MAPRED_HOME=\$HADOOP_INSTALL >> 
/home/hduser/.bashrc'
+sudo sh -c 'echo export HADOOP_COMMON_HOME=\$HADOOP_INSTALL >> 
/home/hduser/.bashrc'
+sudo sh -c 'echo export HADOOP_HDFS_HOME=\$HADOOP_INSTALL >> 
/home/hduser/.bashrc'
+sudo sh -c 'echo export YARN_HOME=\$HADOOP_INSTALL >> /home/hduser/.bashrc'
+sudo sh -c 'echo export 
HADOOP_COMMON_LIB_NATIVE_DIR=\$\{HADOOP_INSTALL\}/lib/native >> 
/home/hduser/.bashrc'
+sudo sh -c 'echo export 
HADOOP_OPTS=\"-Djava.library.path=\$HADOOP_INSTALL/lib\" >> 
/home/hduser/.bashrc'
+# hit the vagrant user with the same thing
+sudo sh -c 'echo export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 >> 
/home/vagrant/.bashrc'
+sudo sh -c 'echo export HADOOP_INSTALL=/usr/local/hadoop >> 
/home/vagrant/.bashrc'
+sudo sh -c 'echo export PATH=\$PATH:\$HADOOP_INSTALL/bin >> 
/home/vagrant/.bashrc'
+sudo sh -c 'echo export PATH=\$PATH:\$HADOOP_INSTALL/sbin >> 
/home/vagrant/.bashrc'
+sudo sh -c 'echo export HADOOP_MAPRED_HOME=\$HADOOP_INSTALL >> 
/home/vagrant/.bashrc'
+sudo sh -c 'echo export HADOOP_COMMON_HOME=\$HADOOP_INSTALL >> 
/home/vagrant/.bashrc'
+sudo sh -c 'echo export HADOOP_HDFS_HOME=\$HADOOP_INSTALL >> 
/home/vagrant/.bashrc'
+sudo sh -c 'echo export YARN_HOME=\$HADOOP_INSTALL >> /home/vagrant/.bashrc'
+sudo sh -c 'echo export 
HADOOP_COMMON_LIB_NATIVE_DIR=\$\{HADOOP_INSTALL\}/lib/native >> 
/home/vagrant/.bashrc'
+sudo sh -c 'echo export 
HADOOP_OPTS=\"-Djava.library.path=\$HADOOP_INSTALL/lib\" >> 
/home/vagrant/.bashrc'
+
+
+# Modify JAVA_HOME in hadoop-env
+cd /usr/local/hadoop/etc/hadoop
+sudo -u hduser sed -i.bak 
s=\${JAVA_HOME}=//usr/lib/jvm/java-7-openjdk-amd64/=g hadoop-env.sh
+pwd
+
+/usr/local/hadoop/bin/hadoop version
+
+# Update configuration
+sudo -u hduser sed -i.bak 
's=<configuration>=<configuration>\<property>\<name>fs\.default\.name\</name>\<value>hdfs://localhost:9000\</value>\</property>=g'
 core-site.xml
+#sudo -u hduser sed -i.bak 
's=<configuration>=<configuration>\<property>\<name>fs\.default\.name\</name>\<value>hdfs://'"$1"':9000\</value>\</property>=g'
 core-site.xml
+sudo -u hduser sed -i.bak 
's=<configuration>=<configuration>\<property>\<name>yarn\.nodemanager\.aux-services</name>\<value>mapreduce_shuffle</value>\</property>\<property>\<name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name>\<value>org\.apache\.hadoop\.mapred\.ShuffleHandler</value>\</property>=g'
 yarn-site.xml
+
+sudo -u hduser cp mapred-site.xml.template mapred-site.xml
+sudo -u hduser sed -i.bak 
's=<configuration>=<configuration>\<property>\<name>mapreduce\.framework\.name</name>\<value>yarn</value>\</property>=g'
 mapred-site.xml
+
+cd ~
+sudo -u hduser sh -c 'mkdir -p ~hduser/mydata/hdfs/namenode'
+sudo -u hduser sh -c 'mkdir -p ~hduser/mydata/hdfs/datanode'
+sudo chown -R hduser:hadoop ~hduser/mydata
+
+cd /usr/local/hadoop/etc/hadoop
+sudo -u hduser sed -i.bak 
's=<configuration>=<configuration>\<property>\<name>dfs\.replication</name>\<value>1\</value>\</property>\<property>\<name>dfs\.namenode\.name\.dir</name>\<value>file:/home/hduser/mydata/hdfs/namenode</value>\</property>\<property>\<name>dfs\.datanode\.data\.dir</name>\<value>file:/home/hduser/mydata/hdfs/datanode</value>\</property>\<property>\<name>dfs\.namenode\.datanode\.registration\.ip-hostname-check</name>\<value>false</value>\</property>=g'
 hdfs-site.xml

http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/1c3857a8/vagrant/virtualbox/mesos/provisioning/install_mesos.sh
----------------------------------------------------------------------
diff --git a/vagrant/virtualbox/mesos/provisioning/install_mesos.sh 
b/vagrant/virtualbox/mesos/provisioning/install_mesos.sh
new file mode 100644
index 0000000..d3521f5
--- /dev/null
+++ b/vagrant/virtualbox/mesos/provisioning/install_mesos.sh
@@ -0,0 +1,38 @@
+#!/bin/bash -v
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+PREFIX="Mesos Provisioner: "
+set -e
+
+echo "${PREFIX} Installing pre-reqs..."
+# For Mesos
+apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF
+DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
+CODENAME=$(lsb_release -cs)
+echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main" | sudo tee 
/etc/apt/sources.list.d/mesosphere.list
+apt-get -y update
+
+apt-get -y install libcurl3
+apt-get -y install zookeeperd
+apt-get -y install aria2
+apt-get -y install ssh
+apt-get -y install rsync
+
+apt-get -y install mesos=0.24.1-0.2.35.ubuntu1404

http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/1c3857a8/vagrant/virtualbox/mesos/provisioning/shutdown.sh
----------------------------------------------------------------------
diff --git a/vagrant/virtualbox/mesos/provisioning/shutdown.sh 
b/vagrant/virtualbox/mesos/provisioning/shutdown.sh
new file mode 100644
index 0000000..2012b84
--- /dev/null
+++ b/vagrant/virtualbox/mesos/provisioning/shutdown.sh
@@ -0,0 +1,30 @@
+#!/bin/bash -v
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+set -e
+
+# Stop HistoryServer
+sudo -u hduser sh -c '/usr/local/hadoop/sbin/mr-jobhistory-daemon.sh stop 
historyserver'
+
+# Stop DataNode
+sudo -u hduser sh -c '/usr/local/hadoop/sbin/hadoop-daemons.sh stop datanode'
+
+# Stop NameNode
+sudo -u hduser sh -c '/usr/local/hadoop/sbin/hadoop-daemon.sh stop namenode'

http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/1c3857a8/vagrant/virtualbox/mesos/provisioning/start_datanode.sh
----------------------------------------------------------------------
diff --git a/vagrant/virtualbox/mesos/provisioning/start_datanode.sh 
b/vagrant/virtualbox/mesos/provisioning/start_datanode.sh
new file mode 100644
index 0000000..e391187
--- /dev/null
+++ b/vagrant/virtualbox/mesos/provisioning/start_datanode.sh
@@ -0,0 +1,24 @@
+#!/bin/bash -v
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+set -e
+
+# Start DataNode
+sudo -u hduser sh -c '/usr/local/hadoop/sbin/hadoop-daemons.sh start datanode'

http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/1c3857a8/vagrant/virtualbox/mesos/provisioning/start_historyserver.sh
----------------------------------------------------------------------
diff --git a/vagrant/virtualbox/mesos/provisioning/start_historyserver.sh 
b/vagrant/virtualbox/mesos/provisioning/start_historyserver.sh
new file mode 100644
index 0000000..88adfca
--- /dev/null
+++ b/vagrant/virtualbox/mesos/provisioning/start_historyserver.sh
@@ -0,0 +1,23 @@
+#!/bin/bash -v
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+set -e
+
+sudo -u hduser sh -c '/usr/local/hadoop/sbin/mr-jobhistory-daemon.sh start 
historyserver'

http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/1c3857a8/vagrant/virtualbox/mesos/provisioning/start_mesos_master.sh
----------------------------------------------------------------------
diff --git a/vagrant/virtualbox/mesos/provisioning/start_mesos_master.sh 
b/vagrant/virtualbox/mesos/provisioning/start_mesos_master.sh
new file mode 100644
index 0000000..4ff48db
--- /dev/null
+++ b/vagrant/virtualbox/mesos/provisioning/start_mesos_master.sh
@@ -0,0 +1,34 @@
+#!/bin/bash -v
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+echo "zk://127.0.0.1:2181/mesos" > /etc/mesos/zk
+#echo "$@ master" >> /etc/hosts
+echo "10.141.141.20 master" >> /etc/hosts
+echo 10.141.141.20 | sudo tee /etc/mesos-master/ip
+echo master | sudo tee /etc/mesos-master/hostname
+
+echo "export HADOOP_HOME=/usr/local/hadoop" >> /root/.bashrc
+echo "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64" >> /root/.bashrc
+echo "export PATH=$PATH:$HADOOP_HOME/bin:$JAVA_HOME/bin" >> /root/.bashrc
+
+# keep mesos slave from starting here
+echo manual | sudo tee /etc/init/mesos-slave.override
+
+sudo start mesos-master

http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/1c3857a8/vagrant/virtualbox/mesos/provisioning/start_mesos_slave.sh
----------------------------------------------------------------------
diff --git a/vagrant/virtualbox/mesos/provisioning/start_mesos_slave.sh 
b/vagrant/virtualbox/mesos/provisioning/start_mesos_slave.sh
new file mode 100644
index 0000000..2abbec9
--- /dev/null
+++ b/vagrant/virtualbox/mesos/provisioning/start_mesos_slave.sh
@@ -0,0 +1,38 @@
+#!/bin/bash -v
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+set -e
+
+echo "10.141.141.20" > /etc/mesos-slave/ip
+echo "cgroups/cpu,cgroups/mem" > /etc/mesos-slave/isolation
+echo "mesos" > /etc/mesos-slave/containerizers
+echo "/usr/local/hadoop" > /etc/mesos-slave/hadoop_home
+
+echo "export HADOOP_HOME=/usr/local/hadoop" >> /root/.bashrc
+echo "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64" >> /root/.bashrc
+
+echo "zk://127.0.0.1:2181/mesos" | sudo tee /etc/mesos/zk
+echo "localhost" | sudo tee /etc/mesos-slave/hostname
+echo "cpus:2;mem:2048" | sudo tee /etc/mesos-slave/resources
+echo manual | sudo tee /etc/init/mesos-master.override
+echo manual | sudo tee /etc/init/zookeeper.override
+
+
+start mesos-slave

http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/1c3857a8/vagrant/virtualbox/mesos/provisioning/start_namenode.sh
----------------------------------------------------------------------
diff --git a/vagrant/virtualbox/mesos/provisioning/start_namenode.sh 
b/vagrant/virtualbox/mesos/provisioning/start_namenode.sh
new file mode 100644
index 0000000..d82b260
--- /dev/null
+++ b/vagrant/virtualbox/mesos/provisioning/start_namenode.sh
@@ -0,0 +1,27 @@
+#!/bin/bash -v
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+set -e
+
+# Start NameNode
+sudo -u hduser sh -c '/usr/local/hadoop/sbin/hadoop-daemon.sh start namenode'
+
+# Open up the HDFS permissions
+sudo -u hduser sh -c "/usr/local/hadoop/bin/hadoop fs -chmod 777 /"


Reply via email to