Skip to content

Instantly share code, notes, and snippets.

@hausdorff
Last active August 29, 2015 14:18
Show Gist options
  • Select an option

  • Save hausdorff/9bc71e167f4890638dd5 to your computer and use it in GitHub Desktop.

Select an option

Save hausdorff/9bc71e167f4890638dd5 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Add the repository
rpm -Uvh http://repos.mesosphere.io/el/7/noarch/RPMS/mesosphere-el-repo-7-1.noarch.rpm
echo "--- ---"
echo "--- Installing Mesos and ZooKeeper packages ---"
echo "--- ---"
yum -y install mesos
echo "--- ---"
echo "--- Configuring ZooKeeper ---"
echo "--- ---"
echo "zk://${2}:2181,${3}:2181,${4}:2181/mesos" | tee /etc/mesos/zk
echo "--- ---"
echo "--- Stopping Mesos master services ---"
echo "--- ---"
systemctl stop mesos-master.service
systemctl disable mesos-master.service
echo "--- ---"
echo "--- Starting Mesos slave services ---"
echo "--- ---"
service mesos-slave restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment