Last active
June 18, 2019 09:07
-
-
Save dims/7ad86fb2ec12c91a4672 to your computer and use it in GitHub Desktop.
Revisions
-
dims revised this gist
Mar 28, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ Deploy Zookeeper --------------- Save following as ~/zookeeper-3.4.8/conf/zoo.cfg ``` -
dims revised this gist
Mar 25, 2016 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,12 @@ zookeeper --------------- Save following as ~/zookeeper-3.4.8/conf/zoo.cfg ``` tickTime=2000 dataDir=/var/zookeeper clientPort=2181 ``` Start zookeeper ``` cd ~/zookeeper-3.4.8/ sudo bin/zkServer.sh start-foreground -
dims revised this gist
Mar 25, 2016 . 1 changed file with 8 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,15 @@ Start ZooKeeper --------------- Save following as ~/zookeeper-3.4.8/conf/zoo.cfg ``` tickTime=2000 dataDir=/var/zookeeper clientPort=2181 ``` ``` cd ~/zookeeper-3.4.8/ sudo bin/zkServer.sh start-foreground ``` Start Mesos Master ------------------ -
dims revised this gist
Mar 25, 2016 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -65,6 +65,11 @@ CONTAINER ID IMAGE COMMAND CREATED c09b82a92895 python:3 "/bin/sh -c 'python3 " 9 seconds ago Up 8 seconds 0.0.0.0:31587->8080/tcp mesos-1affdefd-256a-466d-9c54-512b0a967832-S1.371f1432-515b-47dd-ace8-71eccfe57d0e ``` Check Deployed Application: ``` $ curl http://localhost:31587 ``` Notes ----- - http://mesos.apache.org/gettingstarted/ -
dims revised this gist
Mar 25, 2016 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -58,6 +58,12 @@ curl -X POST http://127.0.0.1:8080/v2/apps -d @basic-3.json -H "Content-type: ap curl http://localhost:8080/v2/apps | python -m json.tool ``` Check Docker container: ``` $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES c09b82a92895 python:3 "/bin/sh -c 'python3 " 9 seconds ago Up 8 seconds 0.0.0.0:31587->8080/tcp mesos-1affdefd-256a-466d-9c54-512b0a967832-S1.371f1432-515b-47dd-ace8-71eccfe57d0e ``` Notes ----- -
dims revised this gist
Mar 25, 2016 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Start Mesos Master ------------------ ``` cd ~/mesos/build/ sudo ./bin/mesos-master.sh --ip=127.0.0.1 --work_dir=/var/lib/mesos --zk=zk://127.0.0.1:2181/mesos --quorum=1 ``` Mesos Web UI : http://127.0.0.1:5050/ @@ -25,7 +25,7 @@ Start Marathon -------------- ``` cd ~/marathon/ sudo ./bin/start --master zk://127.0.0.1:2181/mesos --zk zk://127.0.0.1:2181/marathon ``` Marathon Web UI : http://127.0.0.1:8080/ @@ -54,7 +54,7 @@ Save the following into basic-3.json (Example from https://mesosphere.github.io/ Use curl to deploy and monitor: ``` curl -X POST http://127.0.0.1:8080/v2/apps -d @basic-3.json -H "Content-type: application/json" curl http://localhost:8080/v2/apps | python -m json.tool ``` -
dims revised this gist
Mar 25, 2016 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -28,6 +28,8 @@ cd ~/marathon/ sudo ./bin/start --master zk://10.0.0.3:2181/mesos --zk zk://localhost:2181/marathon ``` Marathon Web UI : http://127.0.0.1:8080/ Deploy Example Marathon App --------------------------- Save the following into basic-3.json (Example from https://mesosphere.github.io/marathon/docs/application-basics.html) -
dims revised this gist
Mar 25, 2016 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,8 @@ Start Mesos Master cd ~/mesos/build/ sudo ./bin/mesos-master.sh --ip=127.0.0.1 --work_dir=/var/lib/mesos --zk=zk://10.0.3:2181/mesos --quorum=1 ``` Mesos Web UI : http://127.0.0.1:5050/ Start Mesos Slave ------------------ -
dims revised this gist
Mar 25, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,7 @@ Start Mesos Master cd ~/mesos/build/ sudo ./bin/mesos-master.sh --ip=127.0.0.1 --work_dir=/var/lib/mesos --zk=zk://10.0.3:2181/mesos --quorum=1 ``` Mesos Web UI : http://localhost:5050/ Start Mesos Slave ------------------ -
dims revised this gist
Mar 25, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -28,7 +28,7 @@ sudo ./bin/start --master zk://10.0.0.3:2181/mesos --zk zk://localhost:2181/mara Deploy Example Marathon App --------------------------- Save the following into basic-3.json (Example from https://mesosphere.github.io/marathon/docs/application-basics.html) ``` { "id": "basic-3", @@ -53,7 +53,7 @@ Use curl to deploy and monitor: curl -X POST http://10.0.0.3:8080/v2/apps -d @basic-3.json -H "Content-type: application/json" curl http://localhost:8080/v2/apps | python -m json.tool ``` Notes ----- -
dims revised this gist
Mar 25, 2016 . 1 changed file with 25 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -28,6 +28,31 @@ sudo ./bin/start --master zk://10.0.0.3:2181/mesos --zk zk://localhost:2181/mara Deploy Example Marathon App --------------------------- Save the following into basic-3.json ``` { "id": "basic-3", "cmd": "python3 -m http.server 8080", "cpus": 0.5, "mem": 32.0, "container": { "type": "DOCKER", "docker": { "image": "python:3", "network": "BRIDGE", "portMappings": [ { "containerPort": 8080, "hostPort": 0 } ] } } } ``` Use curl to deploy and monitor: ``` curl -X POST http://10.0.0.3:8080/v2/apps -d @basic-3.json -H "Content-type: application/json" curl http://localhost:8080/v2/apps | python -m json.tool ``` https://mesosphere.github.io/marathon/docs/application-basics.html Notes -
dims revised this gist
Mar 25, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -22,6 +22,7 @@ sudo ./bin/mesos-slave.sh --master=127.0.0.1:5050 --containerizers=docker,mesos Start Marathon -------------- ``` cd ~/marathon/ sudo ./bin/start --master zk://10.0.0.3:2181/mesos --zk zk://localhost:2181/marathon ``` -
dims revised this gist
Mar 25, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Start Mesos Slave ------------------ ``` cd ~/mesos/build/ sudo ./bin/mesos-slave.sh --master=127.0.0.1:5050 --containerizers=docker,mesos --executor_registration_timeout=5mins ``` Start Marathon -
dims revised this gist
Mar 25, 2016 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -8,12 +8,14 @@ sudo bin/zkServer.sh start-foreground Start Mesos Master ------------------ ``` cd ~/mesos/build/ sudo ./bin/mesos-master.sh --ip=127.0.0.1 --work_dir=/var/lib/mesos --zk=zk://10.0.3:2181/mesos --quorum=1 ``` Start Mesos Slave ------------------ ``` cd ~/mesos/build/ sudo ./bin/mesos-slave.sh --master=127.0.0.1:5050 --containerizers=docker,mesos --exutor_registration_timeout=5mins ``` -
dims revised this gist
Mar 25, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ Start ZooKeeper --------------- ```` cd ~/zookeeper-3.4.8/ sudo bin/zkServer.sh start-foreground ```` -
dims renamed this gist
Mar 25, 2016 . 1 changed file with 0 additions and 14 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,17 +1,3 @@ Start ZooKeeper --------------- -
dims revised this gist
Mar 25, 2016 . 1 changed file with 14 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,17 @@ 1. foo ````python print 'bar' ```` 1. sub-foo ````python print 'sub-bar' ```` 2. Bar Start ZooKeeper --------------- -
dims revised this gist
Mar 25, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Start ZooKeeper ````cd ~/zookeeper-3.4.8/ sudo bin/zkServer.sh start-foreground ```` Start Mesos Master ------------------ -
dims revised this gist
Mar 25, 2016 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,7 @@ Start ZooKeeper --------------- ````cd ~/zookeeper-3.4.8/ sudo bin/zkServer.sh start-foreground ```` -
dims renamed this gist
Mar 25, 2016 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
dims revised this gist
Mar 25, 2016 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,8 @@ Start ZooKeeper --------------- ````cd ~/zookeeper-3.4.8/ sudo bin/zkServer.sh start-foreground ```` Start Mesos Master ------------------ -
dims revised this gist
Mar 25, 2016 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,6 @@ Start ZooKeeper --------------- ```cd ~/zookeeper-3.4.8/ sudo bin/zkServer.sh start-foreground ``` -
dims revised this gist
Mar 25, 2016 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,10 @@ Start ZooKeeper --------------- ``` cd ~/zookeeper-3.4.8/ sudo bin/zkServer.sh start-foreground ``` Start Mesos Master -
dims revised this gist
Mar 25, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,7 @@ Start ZooKeeper --------------- ``` cd ~/zookeeper-3.4.8/ sudo bin/zkServer.sh start-foreground ``` -
dims revised this gist
Mar 25, 2016 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -25,3 +25,10 @@ sudo ./bin/start --master zk://10.0.0.3:2181/mesos --zk zk://localhost:2181/mara Deploy Example Marathon App --------------------------- https://mesosphere.github.io/marathon/docs/application-basics.html Notes ----- - http://mesos.apache.org/gettingstarted/ - https://github.com/mesosphere/marathon - https://mesosphere.github.io/marathon/docs/ - https://mesosphere.github.io/marathon/docs/native-docker.html -
dims revised this gist
Mar 25, 2016 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -24,6 +24,4 @@ sudo ./bin/start --master zk://10.0.0.3:2181/mesos --zk zk://localhost:2181/mara Deploy Example Marathon App --------------------------- https://mesosphere.github.io/marathon/docs/application-basics.html -
dims revised this gist
Mar 25, 2016 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -21,3 +21,9 @@ Start Marathon ``` sudo ./bin/start --master zk://10.0.0.3:2181/mesos --zk zk://localhost:2181/marathon ``` Deploy Example Marathon App --------------------------- ``` https://mesosphere.github.io/marathon/docs/application-basics.html ``` -
dims revised this gist
Mar 25, 2016 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -13,5 +13,11 @@ sudo ./bin/mesos-master.sh --ip=127.0.0.1 --work_dir=/var/lib/mesos --zk=zk://10 Start Mesos Slave ------------------ ``` sudo ./bin/mesos-slave.sh --master=127.0.0.1:5050 --containerizers=docker,mesos --exutor_registration_timeout=5mins ``` Start Marathon -------------- ``` sudo ./bin/start --master zk://10.0.0.3:2181/mesos --zk zk://localhost:2181/marathon ``` -
dims revised this gist
Mar 25, 2016 . 1 changed file with 10 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,17 @@ Start ZooKeeper --------------- ``` sudo bin/zkServer.sh start-foreground ``` Start Mesos Master ------------------ ``` sudo ./bin/mesos-master.sh --ip=127.0.0.1 --work_dir=/var/lib/mesos --zk=zk://10.0.3:2181/mesos --quorum=1 ``` Start Mesos Slave ------------------ ``` udo ./bin/mesos-slave.sh --master=127.0.0.1:5050 --containerizers=docker,mesos --exutor_registration_timeout=5mins ``` -
dims revised this gist
Mar 25, 2016 . 1 changed file with 6 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,9 @@ ###### Start ZooKeeper ``` sudo bin/zkServer.sh start-foreground ``` ###### Start Mesos Master ``` sudo ./bin/mesos-master.sh --ip=127.0.0.1 --work_dir=/var/lib/mesos --zk=zk://10.0.3:2181/mesos --quorum=1 ```
NewerOlder