Last active
June 2, 2017 01:43
-
-
Save slawekzachcial/d3a254b6ba15c24f1fd3 to your computer and use it in GitHub Desktop.
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
### MESOS | |
yum -y update | |
for url in \ | |
#https://get.docker.com/rpm/1.7.1/centos-7/RPMS/x86_64/docker-engine-1.7.1-1.el7.centos.x86_64.rpm \ | |
http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm \ | |
https://tstclair.fedorapeople.org/mesos/centos7/mesos-0.21.0-1.SNAPSHOT.3133734.el7.centos.x86_64.rpm \ | |
https://tstclair.fedorapeople.org/mesos/centos7/python-mesos-0.21.0-1.SNAPSHOT.3133734.el7.centos.x86_64.rpm \ | |
https://tstclair.fedorapeople.org/mesos/centos7/mesos-devel-0.21.0-1.SNAPSHOT.3133734.el7.centos.x86_64.rpm \ | |
https://tstclair.fedorapeople.org/mesos/centos7/mesos-java-0.21.0-1.SNAPSHOT.3133734.el7.centos.x86_64.rpm \ | |
; | |
do | |
curl -sLO $url | |
yum localinstall -y --nogpgcheck "${url##*/}" | |
done | |
### ZOOKEEPER | |
yum install -y java-1.7.0-openjdk-devel | |
curl -O http://wwwftp.ciril.fr/pub/apache/zookeeper/current/zookeeper-3.4.6.tar.gz | |
tar zxf zookeeper-3.4.6.tar.gz | |
cd zookeeper-3.4.6 | |
cp conf/zoo{_sample,}.cfg | |
./bin/zkServer.sh start | |
### MARATHON | |
export MESOS_NATIVE_JAVA_LIBRARY=/usr/lib64/libmesos.so | |
curl -O http://downloads.mesosphere.com/marathon/v0.8.1/marathon-0.8.1.tgz | |
tar zxf marathon-0.8.1.tgz | |
cd marathon-0.8.1 | |
./bin/start --master localhost:5050 | |
### MARATHON Load Balancing | |
yum install -y haproxy | |
mkdir /etc/haproxy | |
./bin/haproxy-marathon-bridge localhost:8080 > /etc/haproxy/haproxy.cfg | |
haproxy -f /etc/haproxy/haproxy.cfg -p /var/haproxy.pid | |
#reload haproxy config to reflect what's in Marathon: | |
./bin/haproxy-marathon-bridge localhost:8080 > /etc/haproxy/haproxy.cfg | |
haproxy -f /etc/haproxy/haproxy.cfg -p /var/haproxy.pid -sf $(cat /var/haproxy.pid) | |
### CHRONOS | |
yum install -y nodejs maven | |
curl -L https://github.com/mesos/chronos/archive/2.3.4.tar.gz -o chronos-2.3.4.tar.gz | |
tar zxf chronos-2.3.4.tar.gz | |
cd chronos-2.3.4 | |
export MESOS_NATIVE_LIBRARY=/usr/lib64/libmesos.so | |
mvn package | |
java -cp target/chronos*.jar org.apache.mesos.chronos.scheduler.Main --master localhost:8080 --zk_hosts localhost:2181 --http_port 8081 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment