Skip to content

Instantly share code, notes, and snippets.

@ceteri
Created October 23, 2013 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ceteri/7127869 to your computer and use it in GitHub Desktop.
Save ceteri/7127869 to your computer and use it in GitHub Desktop.
Chronos tutorial
paco@granite:~$ curl http://downloads.mesosphere.io.s3.amazonaws.com/chronos/chronos.tgz -o chronos.tgz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 35.0M 100 35.0M 0 0 3800k 0 0:00:09 0:00:09 --:--:-- 6913k
paco@granite:~$ tar xzf chronos.tgz
paco@granite:~$ cd chronos/
paco@granite:~/chronos$ nohup ./bin/chronos-marathon &
[1] 26210
paco@granite:~/chronos$ nohup: ignoring input and appending output to ‘nohup.out’
paco@granite:~/chronos$ more nohup.out
+++ dirname ./bin/chronos-marathon
++ cd ./bin
++ cd ..
++ pwd -P
+ chronos_home=/home/paco/chronos
+ echo 'Chronos home set to /home/paco/chronos'
Chronos home set to /home/paco/chronos
+ export JAVA_LIBRARY_PATH=/usr/local/lib:/lib:/usr/lib
+ JAVA_LIBRARY_PATH=/usr/local/lib:/lib:/usr/lib
+ export LD_LIBRARY_PATH=/lib
+ LD_LIBRARY_PATH=/lib
+ export LD_LIBRARY_PATH=/usr/local/lib:/lib:/usr/lib:/lib
+ LD_LIBRARY_PATH=/usr/local/lib:/lib:/usr/lib:/lib
+ export PORT0=4400
+ PORT0=4400
+ flags=()
++ curl -f --timeout 1 http://169.254.169.254/latest/meta-data/public-hostname
curl: option --timeout: is unknown
curl: try 'curl --help' or 'curl --manual' for more information
+ public_hostname=
+ jar_files=("$chronos_home"/target/chronos*.jar)
+ echo 'Using jar file: /home/paco/chronos/target/chronos-2.0.1_mesos-0.14.0-rc4.jar[0]'
Using jar file: /home/paco/chronos/target/chronos-2.0.1_mesos-0.14.0-rc4.jar[0]
+ mesos_master=zk://silvy.example.com:2181,granite.example.com:2181,kt22.mesosphe.re:2181/mesos
+ tmp=silvy.example.com:2181,granite.example.com:2181,kt22.mesosphe.re:2181/mesos
+ zk_hosts=silvy.example.com:2181,granite.example.com:2181,kt22.mesosphe.re:2181
+ flags+=(--master $mesos_master --zk_hosts $zk_hosts)
+ heap=384m
+ java -Xmx384m -Xms384m -cp /home/paco/chronos/target/chronos-2.0.1_mesos-0.14.0-rc4.jar com.airbnb.scheduler.Main --master zk
://silvy.example.com:2181,granite.example.com:2181,kt22.mesosphe.re:2181/mesos --zk_hosts silvy.example.com:2181,granite.
example.com:2181,kt22.mesosphe.re:2181 --http_port 4400
Oct 24, 2013 12:21:09 AM com.airbnb.scheduler.Main$delayedInit$body apply
INFO: ---------------------
Oct 24, 2013 12:21:09 AM com.airbnb.scheduler.Main$delayedInit$body apply
INFO: Initializing chronos.
Oct 24, 2013 12:21:09 AM com.airbnb.scheduler.Main$delayedInit$body apply
INFO: ---------------------
Oct 24, 2013 12:21:10 AM com.airbnb.scheduler.config.MainModule configure
INFO: Wiring up the application
2013-10-23 22:21:10,195:26216(0x7faf097fa700):ZOO_INFO@log_env@658: Client environment:zookeeper.version=zookeeper C client 3.3
.4
2013-10-23 22:21:10,195:26216(0x7faf097fa700):ZOO_INFO@log_env@662: Client environment:host.name=granite.example.com
2013-10-23 22:21:10,195:26216(0x7faf097fa700):ZOO_INFO@log_env@669: Client environment:os.name=Linux
2013-10-23 22:21:10,195:26216(0x7faf097fa700):ZOO_INFO@log_env@670: Client environment:os.arch=3.8.0-27-generic
2013-10-23 22:21:10,195:26216(0x7faf097fa700):ZOO_INFO@log_env@671: Client environment:os.version=#40-Ubuntu SMP Tue Jul 9 00:1
7:05 UTC 2013
2013-10-23 22:21:10,195:26216(0x7faf097fa700):ZOO_INFO@log_env@679: Client environment:user.name=(null)
2013-10-23 22:21:10,195:26216(0x7faf097fa700):ZOO_INFO@log_env@687: Client environment:user.home=/home/paco
2013-10-23 22:21:10,195:26216(0x7faf097fa700):ZOO_INFO@log_env@699: Client environment:user.dir=/home/paco/chronos
2013-10-23 22:21:10,195:26216(0x7faf097fa700):ZOO_INFO@zookeeper_init@727: Initiating client connection, host=silvy.mesosphere.
io:2181,granite.example.com:2181,kt22.mesosphe.re:2181 sessionTimeout=10000 watcher=0x7faf1962a590 sessionId=0 sessionPasswd=
<null> context=0x7faea0000ee0 flags=0
2013-10-23 22:21:10,230:26216(0x7faf037fe700):ZOO_INFO@check_events@1585: initiated connection to server [144.76.157.37:2181]
2013-10-23 22:21:10,260:26216(0x7faf037fe700):ZOO_INFO@check_events@1632: session establishment complete on server [144.76.157.
37:2181], sessionId=0x141e38f7758001b, negotiated timeout=10000
Oct 24, 2013 12:21:10 AM mesosphere.mesos.util.FrameworkIdUtil setIdIfExists
INFO: Setting framework ID to 201310230425-614288528-5050-956-0001
log4j:WARN No appenders could be found for logger (org.apache.zookeeper.ZooKeeper).
log4j:WARN Please initialize the log4j system properly.
Oct 24, 2013 12:21:10 AM com.airbnb.scheduler.config.ZookeeperModule provideCandidate
INFO: Using hostname:localhost
Oct 24, 2013 12:21:10 AM mesosphere.chaos.http.HttpModule provideHttpServer
WARNING: No SSL support configured.
Oct 24, 2013 12:21:10 AM com.airbnb.scheduler.jobs.JobScheduler startUp
INFO: Trying to become leader.
Oct 24, 2013 12:21:10 AM org.eclipse.jetty.server.Server doStart
INFO: jetty-8.y.z-SNAPSHOT
Oct 24, 2013 12:21:10 AM com.twitter.common.zookeeper.Group$ActiveMembership join
INFO: Set group member ID to member_0000000003
Oct 24, 2013 12:21:10 AM com.twitter.common.zookeeper.CandidateImpl$4 onGroupChange
INFO: Candidate /chronos/state/candidate/member_0000000003 is now leader of group: [member_0000000003]
Oct 24, 2013 12:21:10 AM com.airbnb.scheduler.jobs.JobScheduler onElected
INFO: Elected as leader.
Oct 24, 2013 12:21:10 AM com.airbnb.scheduler.jobs.JobScheduler onElected
INFO: Loading tasks
Oct 24, 2013 12:21:10 AM com.airbnb.scheduler.jobs.JobScheduler onElected
INFO: Loading jobs
Oct 24, 2013 12:21:10 AM com.airbnb.scheduler.jobs.JobUtils$ loadJobs
INFO: Registering jobs:0
Oct 24, 2013 12:21:10 AM com.airbnb.scheduler.jobs.JobScheduler onElected
INFO: Starting mesos driver
Oct 24, 2013 12:21:10 AM com.airbnb.scheduler.jobs.JobScheduler$$anon$1 run
INFO: Running background thread
Oct 24, 2013 12:21:10 AM com.airbnb.scheduler.jobs.JobScheduler run
INFO: Starting run loop for JobScheduler. CurrentTime: 2013-10-23T22:21:10.494Z
Oct 24, 2013 12:21:10 AM com.airbnb.scheduler.jobs.JobScheduler run
INFO: Size of streams: 0
Oct 24, 2013 12:21:10 AM com.airbnb.scheduler.jobs.JobScheduler iteration
INFO: Checking schedules with time horizon:PT60S
I1023 22:21:10.510474 26239 detector.cpp:234] Master detector (scheduler(1)@144.76.157.36:40722) connected to ZooKeeper ...
I1023 22:21:10.510613 26239 detector.cpp:251] Trying to create path '/mesos' in ZooKeeper
I1023 22:21:10.512984 26239 detector.cpp:420] Master detector (scheduler(1)@144.76.157.36:40722) found 3 registered masters
I1023 22:21:10.514165 26239 detector.cpp:467] Master detector (scheduler(1)@144.76.157.36:40722) got new master pid: master@14
4.76.157.36:5050
Oct 24, 2013 12:21:10 AM com.airbnb.scheduler.mesos.MesosJobFramework registered
INFO: Registered
Oct 24, 2013 12:21:10 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider as a provider class
Oct 24, 2013 12:21:10 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering com.codahale.metrics.jersey.InstrumentedResourceMethodDispatchAdapter as a provider class
Oct 24, 2013 12:21:10 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering mesosphere.chaos.validation.ConstraintViolationExceptionMapper as a provider class
Oct 24, 2013 12:21:10 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering com.airbnb.scheduler.api.Iso8601JobResource as a root resource class
Oct 24, 2013 12:21:10 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering com.airbnb.scheduler.api.DependentJobResource as a root resource class
Oct 24, 2013 12:21:10 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering com.airbnb.scheduler.api.JobManagementResource as a root resource class
Oct 24, 2013 12:21:10 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering com.airbnb.scheduler.api.TaskManagementResource as a root resource class
Oct 24, 2013 12:21:10 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering com.airbnb.scheduler.api.GraphManagementResource as a root resource class
Oct 24, 2013 12:21:10 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering com.airbnb.scheduler.api.StatsResource as a root resource class
Oct 24, 2013 12:21:10 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.17.1 02/28/2013 12:47 PM'
Oct 24, 2013 12:21:10 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
INFO: Binding com.codahale.metrics.jersey.InstrumentedResourceMethodDispatchAdapter to GuiceManagedComponentProvider with the s
cope "Singleton"
Oct 24, 2013 12:21:10 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
INFO: Binding mesosphere.chaos.validation.ConstraintViolationExceptionMapper to GuiceManagedComponentProvider with the scope "S
ingleton"
Oct 24, 2013 12:21:10 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
INFO: Binding com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider to GuiceManagedComponentProvider with the scope "Singleton"
Oct 24, 2013 12:21:10 AM com.airbnb.scheduler.mesos.MesosJobFramework registered
INFO: Master info:id: "201310230425-614288528-5050-956"
ip: 614288528
port: 5050
Oct 24, 2013 12:21:10 AM com.airbnb.scheduler.mesos.MesosJobFramework resourceOffers
INFO: Received resource offers
Oct 24, 2013 12:21:10 AM com.airbnb.scheduler.mesos.MesosJobFramework getNextTask$1
INFO: No tasks scheduled! Declining offers
Oct 24, 2013 12:21:10 AM mesosphere.mesos.util.FrameworkIdUtil$$anonfun$store$1$$anonfun$apply$1 apply
INFO: Stored framework ID '201310230425-614288528-5050-956-0001'
Oct 24, 2013 12:21:10 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
INFO: Binding com.airbnb.scheduler.api.Iso8601JobResource to GuiceManagedComponentProvider with the scope "Singleton"
Oct 24, 2013 12:21:10 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
INFO: Binding com.airbnb.scheduler.api.DependentJobResource to GuiceManagedComponentProvider with the scope "Singleton"
Oct 24, 2013 12:21:10 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
INFO: Binding com.airbnb.scheduler.api.JobManagementResource to GuiceManagedComponentProvider with the scope "Singleton"
Oct 24, 2013 12:21:10 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
INFO: Binding com.airbnb.scheduler.api.TaskManagementResource to GuiceManagedComponentProvider with the scope "Singleton"
Oct 24, 2013 12:21:10 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
INFO: Binding com.airbnb.scheduler.api.GraphManagementResource to GuiceManagedComponentProvider with the scope "Singleton"
Oct 24, 2013 12:21:10 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
INFO: Binding com.airbnb.scheduler.api.StatsResource to GuiceManagedComponentProvider with the scope "Singleton"
Oct 24, 2013 12:21:10 AM org.eclipse.jetty.server.AbstractConnector doStart
INFO: Started SelectChannelConnector@0.0.0.0:4400
Oct 24, 2013 12:21:12 AM mesosphere.chaos.http.ChaosRequestLog write
INFO: 50.131.59.19 - - [23/Oct/2013:22:21:12 +0000] "GET /scheduler/graph/csv HTTP/1.1" 200 0 "http://granite.example.com:4
400/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
"
Oct 24, 2013 12:21:12 AM mesosphere.chaos.http.ChaosRequestLog write
INFO: 50.131.59.19 - - [23/Oct/2013:22:21:12 +0000] "GET /scheduler/jobs HTTP/1.1" 200 2 "http://granite.example.com:4400/"
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36"
Oct 24, 2013 12:21:12 AM mesosphere.chaos.http.ChaosRequestLog write
INFO: 50.131.59.19 - - [23/Oct/2013:22:21:12 +0000] "GET /scheduler/jobs HTTP/1.1" 200 2 "http://granite.example.com:4400/"
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36"
Oct 24, 2013 12:21:12 AM mesosphere.chaos.http.ChaosRequestLog write
INFO: 50.131.59.19 - - [23/Oct/2013:22:21:12 +0000] "GET /scheduler/graph/csv HTTP/1.1" 200 0 "http://granite.example.com:4
400/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
"
Oct 24, 2013 12:21:16 AM com.airbnb.scheduler.mesos.MesosJobFramework resourceOffers
INFO: Received resource offers
Oct 24, 2013 12:21:16 AM com.airbnb.scheduler.mesos.MesosJobFramework getNextTask$1
INFO: No tasks scheduled! Declining offers
Oct 24, 2013 12:21:19 AM mesosphere.chaos.http.ChaosRequestLog write
INFO: 50.131.59.19 - - [23/Oct/2013:22:21:19 +0000] "GET /scheduler/jobs HTTP/1.1" 200 2 "http://granite.example.com:4400/"
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36"
Oct 24, 2013 12:21:19 AM mesosphere.chaos.http.ChaosRequestLog write
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment