Last active
August 29, 2015 14:18
-
-
Save hausdorff/9bc71e167f4890638dd5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/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