How to run Marathon locally on OS X

310 views
Skip to first unread message

Sarvesh Kaushal

unread,
Aug 7, 2017, 12:44:06 PM8/7/17
to marathon-framework

I am trying to run Marathon on my local machine (Mac OS Sierra- 10.12.6). I followed the instructions on http://mesosphere.github.io/marathon/docs/. As per instructions I was able to run both Mesos and Zookeeper locally.(BTW I installed Mesos and Zookeeper using Homebrew) These two are prerequisites in order to run Marathon in local. 

For Marathon, I downloaded latest package and extracted in a folder. Now when I try to run /bin/start —master…..[full command which specifies zookeeper and mesos], it closes my terminal window. 


I could not find clear instructions anywhere to do this in local system. Can someone help?

Ivan Chernetsky

unread,
Aug 7, 2017, 3:37:09 PM8/7/17
to Sarvesh Kaushal, marathon-framework
Hi Sarvesh,

could you please show us the full command you use to start Marathon? Also, what Marathon version do you use?

Regards,
Ivan.

--
You received this message because you are subscribed to the Google Groups "marathon-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marathon-framework+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sarvesh Kaushal

unread,
Aug 7, 2017, 6:20:07 PM8/7/17
to marathon-framework
Hi Ivan,

I am using below command: 
$ cd marathon-1.4.3/bin
$ . start --master http://localhost:5050

My mesos is running on localhost at 5050 port.

Ivan Chernetsky

unread,
Aug 7, 2017, 6:36:38 PM8/7/17
to Sarvesh Kaushal, marathon-framework
Sarvesh,

it seems, there is a dot before `start`. Why?

Regards,
Ivan.

--

Sarvesh Kaushal

unread,
Aug 7, 2017, 6:43:11 PM8/7/17
to marathon-framework
Without . it's not recognizing start script:
$ start --master localhost:5050
-bash: start: command not found

Can you please let me know the full command that I should use in local when I have marathon running on localhost:5050 and zookeeper running on 2181 :
Running mesos
$ /usr/local/sbin/mesos-master --registry=in_memory --ip=127.0.0.1
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0807 15:37:19.598620 2890499008 main.cpp:232] Build: 2017-07-16 19:12:27 by brew
I0807 15:37:19.599254 2890499008 main.cpp:233] Version: 1.3.0
I0807 15:37:19.602020 2890499008 main.cpp:339] Using 'HierarchicalDRF' allocator
I0807 15:37:19.611341 167657472 master.cpp:436] Master 101ad0f4-5a9c-4825-b50a-266628432a80 (localhost) started on 127.0.0.1:5050
I0807 15:37:19.611378 167657472 master.cpp:438] Flags at startup: --agent_ping_timeout="15secs" --agent_reregister_timeout="10mins" --allocation_interval="1secs" --allocator="HierarchicalDRF" --authenticate_agents="false" --authenticate_frameworks="false" --authenticate_http_frameworks="false" --authenticate_http_readonly="false" --authenticate_http_readwrite="false" --authenticators="crammd5" --authorizers="local" --framework_sorter="drf" --help="false" --hostname_lookup="true" --http_authenticators="basic" --initialize_driver_logging="true" --ip="127.0.0.1" --log_auto_initialize="true" --logbufsecs="0" --logging_level="INFO" --max_agent_ping_timeouts="5" --max_completed_frameworks="50" --max_completed_tasks_per_framework="1000" --max_unreachable_tasks_per_framework="1000" --port="5050" --quiet="false" --recovery_agent_removal_limit="100%" --registry="in_memory" --registry_fetch_timeout="1mins" --registry_gc_interval="15mins" --registry_max_agent_age="2weeks" --registry_max_agent_count="102400" --registry_store_timeout="20secs" --registry_strict="false" --root_submissions="true" --user_sorter="drf" --version="false" --webui_dir="/usr/local/Cellar/mesos/1.3.0/share/mesos/webui" --zk_session_timeout="10secs"
W0807 15:37:19.611544 167657472 master.cpp:441]
**************************************************
Master bound to loopback interface! Cannot communicate with remote schedulers or agents. You might want to set '--ip' flag to a routable IP address.
**************************************************
I0807 15:37:19.611599 167657472 master.cpp:490] Master allowing unauthenticated frameworks to register
I0807 15:37:19.611608 167657472 master.cpp:504] Master allowing unauthenticated agents to register
I0807 15:37:19.611613 167657472 master.cpp:518] Master allowing HTTP frameworks to register without authentication
I0807 15:37:19.611635 167657472 master.cpp:560] Using default 'crammd5' authenticator
W0807 15:37:19.611650 167657472 authenticator.cpp:512] No credentials provided, authentication requests will be refused
I0807 15:37:19.611657 167657472 authenticator.cpp:519] Initializing server SASL
I0807 15:37:19.636167 168194048 master.cpp:2161] Elected as the leading master!
I0807 15:37:19.636196 168194048 master.cpp:1700] Recovering from registrar
I0807 15:37:19.642782 170876928 registrar.cpp:389] Successfully fetched the registry (0B) in 6.502144ms
I0807 15:37:19.642942 170876928 registrar.cpp:493] Applied 1 operations in 41us; attempting to update the registry
I0807 15:37:19.643337 170876928 registrar.cpp:550] Successfully updated the registry in 364032ns
I0807 15:37:19.643402 170876928 registrar.cpp:422] Successfully recovered registrar
I0807 15:37:19.643621 171413504 master.cpp:1799] Recovered 0 agents from the registry (118B); allowing 10mins for agents to re-register
I0807 15:38:26.711606 171413504 http.cpp:1115] HTTP GET for /master/state?jsonp=angular.callbacks._4s from 127.0.0.1:59843 with User-Agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36'

Running Zookeeper:

$ zkServer start
ZooKeeper JMX enabled by default
Using config: /usr/local/etc/zookeeper/zoo.cfg
Starting zookeeper ... STARTED

On Monday, August 7, 2017 at 9:44:06 AM UTC-7, Sarvesh Kaushal wrote:

Ivan Chernetsky

unread,
Aug 8, 2017, 12:24:21 PM8/8/17
to Sarvesh Kaushal, marathon-framework
Sarvesh,

cd marathon-dir
./bin/start --master zk://localhost:2181/mesos --zk zk://localhost:2181/marathon

Regards,
Ivan.

--

Sarvesh Kaushal

unread,
Aug 8, 2017, 12:58:00 PM8/8/17
to marathon-framework
It appears to start Marathon with this client, but it aborts with some error. Here are logs:


skausha3$ ./bin/start --master zk://localhost:2181/mesos --zk zk://localhost:2181/marathon
MESOS_NATIVE_JAVA_LIBRARY is not set. Searching in /usr/lib /usr/local/lib.
MESOS_NATIVE_LIBRARY, MESOS_NATIVE_JAVA_LIBRARY set to '/usr/local/lib/libmesos.dylib'
No start hook file found ($HOOK_MARATHON_START). Proceeding with the start script.
[2017-08-08 09:54:21,135] INFO  Starting Marathon 1.4.3/unknown with --master zk://localhost:2181/mesos --zk zk://localhost:2181/marathon (mesosphere.marathon.MarathonApp:main)
[2017-08-08 09:54:21,617] INFO  Successfully loaded libmesos: version 1.3.0 (mesosphere.marathon.MarathonApp:main)
[2017-08-08 09:54:21,912] WARN  Method [public javax.ws.rs.core.Response mesosphere.marathon.api.MarathonExceptionMapper.toResponse(java.lang.Throwable)] is synthetic and is being intercepted by [mesosphere.marathon.DebugModule$MetricsBehavior@25a73de1]. This could indicate a bug.  The method may be intercepted twice, or may not be intercepted at all. (com.google.inject.internal.ProxyFactory:main)
[2017-08-08 09:54:22,110] INFO  Logging initialized @2192ms (org.eclipse.jetty.util.log:main)
[2017-08-08 09:54:22,488] INFO  Slf4jLogger started (akka.event.slf4j.Slf4jLogger:marathon-akka.actor.default-dispatcher-3)
[2017-08-08 09:54:22,649] WARN  session timeout [10000] is less than connection timeout [15000] (org.apache.curator.CuratorZookeeperClient:main)
[2017-08-08 09:54:22,666] INFO  Starting (org.apache.curator.framework.imps.CuratorFrameworkImpl:main)
[2017-08-08 09:54:22,675] INFO  Client environment:zookeeper.version=3.5.0-alpha-1615249, built on 08/01/2014 22:13 GMT (org.apache.zookeeper.ZooKeeper:main)
[2017-08-08 09:54:22,675] INFO  Client environment:host.name=wabotmac0697034.gsm1900.org (org.apache.zookeeper.ZooKeeper:main)
[2017-08-08 09:54:22,675] INFO  Client environment:java.version=1.8.0_131 (org.apache.zookeeper.ZooKeeper:main)
[2017-08-08 09:54:22,675] INFO  Client environment:java.vendor=Oracle Corporation (org.apache.zookeeper.ZooKeeper:main)
[2017-08-08 09:54:22,675] INFO  Client environment:java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre (org.apache.zookeeper.ZooKeeper:main)
[2017-08-08 09:54:22,675] INFO  Client environment:java.class.path=./bin/../target/scala-2.11/marathon-assembly-1.4.3.jar (org.apache.zookeeper.ZooKeeper:main)
[2017-08-08 09:54:22,675] INFO  Client environment:java.library.path=/Users/skausha3/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:. (org.apache.zookeeper.ZooKeeper:main)
[2017-08-08 09:54:22,675] INFO  Client environment:java.io.tmpdir=/var/folders/6c/0z80yxj90z9d1q7pcgcq3pnrsh3x03/T/ (org.apache.zookeeper.ZooKeeper:main)
[2017-08-08 09:54:22,675] INFO  Client environment:java.compiler=<NA> (org.apache.zookeeper.ZooKeeper:main)
[2017-08-08 09:54:22,675] INFO  Client environment:os.name=Mac OS X (org.apache.zookeeper.ZooKeeper:main)
[2017-08-08 09:54:22,675] INFO  Client environment:os.arch=x86_64 (org.apache.zookeeper.ZooKeeper:main)
[2017-08-08 09:54:22,675] INFO  Client environment:os.version=10.12.6 (org.apache.zookeeper.ZooKeeper:main)
[2017-08-08 09:54:22,675] INFO  Client environment:user.name=skausha3 (org.apache.zookeeper.ZooKeeper:main)
[2017-08-08 09:54:22,675] INFO  Client environment:user.home=/Users/skausha3 (org.apache.zookeeper.ZooKeeper:main)
[2017-08-08 09:54:22,675] INFO  Client environment:user.dir=/Users/skausha3/Downloads/marathon-1.4.3 (org.apache.zookeeper.ZooKeeper:main)
[2017-08-08 09:54:22,675] INFO  Client environment:os.memory.free=253MB (org.apache.zookeeper.ZooKeeper:main)
[2017-08-08 09:54:22,675] INFO  Client environment:os.memory.max=3641MB (org.apache.zookeeper.ZooKeeper:main)
[2017-08-08 09:54:22,675] INFO  Client environment:os.memory.total=283MB (org.apache.zookeeper.ZooKeeper:main)
[2017-08-08 09:54:22,675] INFO  Initiating client connection, connectString=localhost:2181 sessionTimeout=10000 watcher=org.apache.curator.ConnectionState@e4e1ef5 (org.apache.zookeeper.ZooKeeper:main)
[2017-08-08 09:54:22,693] INFO  Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn:main-SendThread(localhost:2181))
[2017-08-08 09:54:22,714] INFO  Socket connection established to localhost/127.0.0.1:2181, initiating session (org.apache.zookeeper.ClientCnxn:main-SendThread(localhost:2181))
[2017-08-08 09:54:22,726] INFO  Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x15dc2c0bf7f0004, negotiated timeout = 10000 (org.apache.zookeeper.ClientCnxn:main-SendThread(localhost:2181))
[2017-08-08 09:54:22,730] INFO  State change: CONNECTED (org.apache.curator.framework.state.ConnectionStateManager:main-EventThread)
[2017-08-08 09:54:22,824] INFO  Started TaskTrackerUpdateStepsProcessorImpl with steps:
* continueOnError(notifyHealthCheckManager)
* continueOnError(notifyRateLimiter)
* continueOnError(notifyLaunchQueue)
* continueOnError(emitUpdate)
* continueOnError(postTaskStatusEvent)
* continueOnError(scaleApp) (mesosphere.marathon.core.task.tracker.impl.InstanceTrackerUpdateStepProcessorImpl:main)
[2017-08-08 09:54:22,876] INFO  Calling reviveOffers is enabled. Use --disable_revive_offers_for_new_apps to disable. (mesosphere.marathon.core.flow.FlowModule:main)
[2017-08-08 09:54:23,018] INFO  Loading plugins implementing 'mesosphere.marathon.plugin.auth.Authenticator' from these urls: [] (mesosphere.marathon.core.plugin.impl.PluginManagerImpl:main)
[2017-08-08 09:54:23,022] INFO  Found 0 plugins. (mesosphere.marathon.core.plugin.impl.PluginManagerImpl:main)
[2017-08-08 09:54:23,023] INFO  Loading plugins implementing 'mesosphere.marathon.plugin.auth.Authorizer' from these urls: [] (mesosphere.marathon.core.plugin.impl.PluginManagerImpl:main)
[2017-08-08 09:54:23,024] INFO  Found 0 plugins. (mesosphere.marathon.core.plugin.impl.PluginManagerImpl:main)
[2017-08-08 09:54:23,031] INFO  Started status update processor (mesosphere.marathon.core.task.update.impl.TaskStatusUpdateProcessorImpl$$EnhancerByGuice$$e48de9e3:main)
[2017-08-08 09:54:23,206] INFO  All actors suspended:
* Actor[akka://marathon/user/killOverdueStagedTasks#1004896376]
* Actor[akka://marathon/user/instanceTracker#1877984182]
* Actor[akka://marathon/user/rateLimiter#-125966908]
* Actor[akka://marathon/user/groupManager#591590119]
* Actor[akka://marathon/user/launchQueue#-1612344969]
* Actor[akka://marathon/user/offerMatcherManager#-2015584668]
* Actor[akka://marathon/user/reviveOffersWhenWanted#-1789221616]
* Actor[akka://marathon/user/expungeOverdueLostTasks#-107834767]
* Actor[akka://marathon/user/offerMatcherLaunchTokens#-2082107061]
* Actor[akka://marathon/user/taskKillServiceActor#655607026]
* Actor[akka://marathon/user/offersWantedForReconciliation#1617451739]
* Actor[akka://marathon/user/offerMatcherStatistics#-483177192] (mesosphere.marathon.core.leadership.impl.LeadershipCoordinatorActor:marathon-akka.actor.default-dispatcher-4)
[2017-08-08 09:54:23,267] INFO  Adding HTTP support. (mesosphere.chaos.http.HttpModule:main)
[2017-08-08 09:54:23,268] INFO  No HTTPS support configured. (mesosphere.chaos.http.HttpModule:main)
[2017-08-08 09:54:23,309] INFO  Starting up (mesosphere.marathon.MarathonSchedulerService$$EnhancerByGuice$$baa253c:MarathonSchedulerService$$EnhancerByGuice$$baa253c)
[2017-08-08 09:54:23,309] INFO  Beginning run (mesosphere.marathon.MarathonSchedulerService$$EnhancerByGuice$$baa253c:MarathonSchedulerService$$EnhancerByGuice$$baa253c)
[2017-08-08 09:54:23,310] INFO  jetty-9.3.z-SNAPSHOT (org.eclipse.jetty.server.Server:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,311] INFO  Will offer leadership after 500 milliseconds backoff (mesosphere.marathon.core.election.impl.CuratorElectionService:MarathonSchedulerService$$EnhancerByGuice$$baa253c)
[2017-08-08 09:54:23,341] INFO  Now standing by. Closing existing handles and rejecting new. (mesosphere.marathon.core.event.impl.stream.HttpEventStreamActor:marathon-akka.actor.default-dispatcher-7)
[2017-08-08 09:54:23,411] INFO  Registering com.codahale.metrics.jersey.InstrumentedResourceMethodDispatchAdapter as a provider class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,413] INFO  Registering mesosphere.marathon.api.MarathonExceptionMapper as a provider class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,413] INFO  Registering mesosphere.marathon.api.SystemResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,414] INFO  Registering mesosphere.marathon.api.v2.AppsResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,414] INFO  Registering mesosphere.marathon.api.v2.PodsResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,414] INFO  Registering mesosphere.marathon.api.v2.TasksResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,414] INFO  Registering mesosphere.marathon.api.v2.EventSubscriptionsResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,414] INFO  Registering mesosphere.marathon.api.v2.QueueResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,414] INFO  Registering mesosphere.marathon.api.v2.GroupsResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,414] INFO  Registering mesosphere.marathon.api.v2.InfoResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,414] INFO  Registering mesosphere.marathon.api.v2.LeaderResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,414] INFO  Registering mesosphere.marathon.api.v2.DeploymentsResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,414] INFO  Registering mesosphere.marathon.api.v2.ArtifactsResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,414] INFO  Registering mesosphere.marathon.api.v2.SchemaResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,414] INFO  Registering mesosphere.marathon.api.v2.PluginsResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,416] INFO  Initiating Jersey application, version 'Jersey: 1.18.1 02/19/2014 03:28 AM' (com.sun.jersey.server.impl.application.WebApplicationImpl:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,451] INFO  Binding com.codahale.metrics.jersey.InstrumentedResourceMethodDispatchAdapter to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,465] INFO  Binding mesosphere.marathon.api.MarathonExceptionMapper to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,812] INFO  Binding mesosphere.marathon.api.SystemResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,825] INFO  Binding mesosphere.marathon.api.v2.AppsResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,832] INFO  Binding mesosphere.marathon.api.v2.PodsResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,834] INFO  Using HA and therefore offering leadership (mesosphere.marathon.core.election.impl.CuratorElectionService:pool-4-thread-1)
[2017-08-08 09:54:23,836] INFO  Will do leader election through localhost:2181 (mesosphere.marathon.core.election.impl.CuratorElectionService:pool-4-thread-1)
[2017-08-08 09:54:23,836] INFO  Binding mesosphere.marathon.api.v2.TasksResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,837] INFO  Starting (org.apache.curator.framework.imps.CuratorFrameworkImpl:pool-4-thread-1)
[2017-08-08 09:54:23,837] INFO  Initiating client connection, connectString=localhost:2181 sessionTimeout=10000 watcher=org.apache.curator.ConnectionState@4150dbbe (org.apache.zookeeper.ZooKeeper:pool-4-thread-1)
[2017-08-08 09:54:23,838] INFO  Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn:pool-4-thread-1-SendThread(localhost:2181))
[2017-08-08 09:54:23,838] INFO  Socket connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating session (org.apache.zookeeper.ClientCnxn:pool-4-thread-1-SendThread(localhost:2181))
[2017-08-08 09:54:23,838] INFO  Binding mesosphere.marathon.api.v2.EventSubscriptionsResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,839] INFO  Event notification disabled. (mesosphere.marathon.core.event.EventModule:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,842] INFO  Binding mesosphere.marathon.api.v2.QueueResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,845] INFO  Session establishment complete on server localhost/0:0:0:0:0:0:0:1:2181, sessionid = 0x15dc2c0bf7f0005, negotiated timeout = 10000 (org.apache.zookeeper.ClientCnxn:pool-4-thread-1-SendThread(localhost:2181))
[2017-08-08 09:54:23,845] INFO  State change: CONNECTED (org.apache.curator.framework.state.ConnectionStateManager:pool-4-thread-1-EventThread)
[2017-08-08 09:54:23,847] INFO  Binding mesosphere.marathon.api.v2.GroupsResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,850] INFO  Binding mesosphere.marathon.api.v2.InfoResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,852] INFO  Binding mesosphere.marathon.api.v2.LeaderResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,855] INFO  Binding mesosphere.marathon.api.v2.DeploymentsResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,864] INFO  Binding mesosphere.marathon.api.v2.ArtifactsResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,865] INFO  Binding mesosphere.marathon.api.v2.SchemaResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,869] INFO  Binding mesosphere.marathon.api.v2.PluginsResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,869] INFO  Loading plugins implementing 'mesosphere.marathon.plugin.http.HttpRequestHandler' from these urls: [] (mesosphere.marathon.core.plugin.impl.PluginManagerImpl:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,869] INFO  Found 0 plugins. (mesosphere.marathon.core.plugin.impl.PluginManagerImpl:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,883] INFO  Started o.e.j.s.ServletContextHandler@7c829a04{/,null,AVAILABLE} (org.eclipse.jetty.server.handler.ContextHandler:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,885] INFO  Leader elected (mesosphere.marathon.core.election.impl.CuratorElectionService:pool-4-thread-1)
[2017-08-08 09:54:23,888] INFO  As new leader running the driver (mesosphere.marathon.MarathonSchedulerService$$EnhancerByGuice$$baa253c:pool-4-thread-1)
[2017-08-08 09:54:23,898] INFO  Started ServerConnector@44743929{HTTP/1.1,[http/1.1]}{0.0.0.0:8080} (org.eclipse.jetty.server.ServerConnector:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,898] INFO  Started @3981ms (org.eclipse.jetty.server.Server:HttpService$$EnhancerByGuice$$96825a6 STARTING)
[2017-08-08 09:54:23,899] INFO  All services up and running. (mesosphere.marathon.MarathonApp:main)
[2017-08-08 09:54:23,946] INFO  Initiating client connection, connectString=localhost:2181 sessionTimeout=10000 watcher=com.twitter.zk.EventBroker@7a7783a2 (org.apache.zookeeper.ZooKeeper:ForkJoinPool-2-worker-29)
[2017-08-08 09:54:23,946] INFO  Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn:ForkJoinPool-2-worker-29-SendThread(localhost:2181))
[2017-08-08 09:54:23,947] INFO  Socket connection established to localhost/127.0.0.1:2181, initiating session (org.apache.zookeeper.ClientCnxn:ForkJoinPool-2-worker-29-SendThread(localhost:2181))
[2017-08-08 09:54:23,950] INFO  Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x15dc2c0bf7f0006, negotiated timeout = 10000 (org.apache.zookeeper.ClientCnxn:ForkJoinPool-2-worker-29-SendThread(localhost:2181))
[2017-08-08 09:54:24,092] INFO  No migration necessary, already at the current version (mesosphere.marathon.storage.migration.Migration:ForkJoinPool-2-worker-21)
[2017-08-08 09:54:24,098] INFO  Session: 0x15dc2c0bf7f0006 closed (org.apache.zookeeper.ZooKeeper:ForkJoinPool-2-worker-25)
[2017-08-08 09:54:24,099] INFO  EventThread shut down (org.apache.zookeeper.ClientCnxn:ForkJoinPool-2-worker-29-EventThread)
[2017-08-08 09:54:24,101] INFO  Migration successfully applied for version Version(1, 4, 3, LEGACY) (mesosphere.marathon.storage.migration.Migration:pool-4-thread-1)
[2017-08-08 09:54:24,101] INFO  Call preDriverStarts callbacks on  (mesosphere.marathon.MarathonSchedulerService$$EnhancerByGuice$$baa253c:pool-4-thread-1)
[2017-08-08 09:54:24,102] INFO  Finished preDriverStarts callbacks (mesosphere.marathon.MarathonSchedulerService$$EnhancerByGuice$$baa253c:pool-4-thread-1)
[2017-08-08 09:54:24,108] INFO  started RateLimiterActor (mesosphere.marathon.core.launchqueue.impl.RateLimiterActor:marathon-akka.actor.default-dispatcher-11)
[2017-08-08 09:54:24,108] INFO  no interest in offers for reservation reconciliation anymore. (mesosphere.marathon.core.matcher.reconcile.impl.OffersWantedForReconciliationActor:marathon-akka.actor.default-dispatcher-16)
[2017-08-08 09:54:24,115] INFO  Started. Will remain interested in offer reconciliation for 17500 milliseconds when needed. (mesosphere.marathon.core.matcher.reconcile.impl.OffersWantedForReconciliationActor:marathon-akka.actor.default-dispatcher-16)
[2017-08-08 09:54:24,115] INFO  ExpungeOverdueLostTasksActor has started (mesosphere.marathon.core.task.jobs.impl.ExpungeOverdueLostTasksActor:marathon-akka.actor.default-dispatcher-24)
[2017-08-08 09:54:24,116] INFO  All actors active:
* Actor[akka://marathon/user/killOverdueStagedTasks#1004896376]
* Actor[akka://marathon/user/instanceTracker#1877984182]
* Actor[akka://marathon/user/rateLimiter#-125966908]
* Actor[akka://marathon/user/groupManager#591590119]
* Actor[akka://marathon/user/launchQueue#-1612344969]
* Actor[akka://marathon/user/offerMatcherManager#-2015584668]
* Actor[akka://marathon/user/reviveOffersWhenWanted#-1789221616]
* Actor[akka://marathon/user/expungeOverdueLostTasks#-107834767]
* Actor[akka://marathon/user/offerMatcherLaunchTokens#-2082107061]
* Actor[akka://marathon/user/taskKillServiceActor#655607026]
* Actor[akka://marathon/user/offersWantedForReconciliation#1617451739]
* Actor[akka://marathon/user/offerMatcherStatistics#-483177192] (mesosphere.marathon.core.leadership.impl.LeadershipCoordinatorActor:marathon-akka.actor.default-dispatcher-24)
[2017-08-08 09:54:24,117] INFO  InstanceTrackerActor is starting. Task loading initiated. (mesosphere.marathon.core.task.tracker.impl.InstanceTrackerActor:marathon-akka.actor.default-dispatcher-9)
[2017-08-08 09:54:24,140] INFO  Create new Scheduler Driver with frameworkId: None and scheduler mesosphere.marathon.core.heartbeat.MesosHeartbeatMonitor$$EnhancerByGuice$$5e4496c6@6975fb1c (mesosphere.marathon.MarathonSchedulerDriver$:pool-4-thread-1)
[2017-08-08 09:54:24,144] INFO  About to load 0 tasks (mesosphere.marathon.core.task.tracker.impl.InstancesLoaderImpl:ForkJoinPool-2-worker-17)
[2017-08-08 09:54:24,147] INFO  Loaded 0 tasks (mesosphere.marathon.core.task.tracker.impl.InstancesLoaderImpl:ForkJoinPool-2-worker-29)
[2017-08-08 09:54:24,150] INFO  Task loading complete. (mesosphere.marathon.core.task.tracker.impl.InstanceTrackerActor:marathon-akka.actor.default-dispatcher-9)
[2017-08-08 09:54:24,152] INFO  PARTITION_AWARE feature enabled. (mesosphere.marathon.MarathonSchedulerDriver$:pool-4-thread-1)
[2017-08-08 09:54:24,170] INFO  interested in offers for reservation reconciliation because of becoming leader (until 2017-08-08T16:54:41.619Z) (mesosphere.marathon.core.matcher.reconcile.impl.OffersWantedForReconciliationActor:marathon-akka.actor.default-dispatcher-16)
[2017-08-08 09:54:24,177] INFO  Received offers WANTED notification (mesosphere.marathon.core.flow.impl.ReviveOffersActor:marathon-akka.actor.default-dispatcher-9)
[2017-08-08 09:54:24,177] INFO  => revive offers NOW, canceling any scheduled revives (mesosphere.marathon.core.flow.impl.ReviveOffersActor:marathon-akka.actor.default-dispatcher-9)
[2017-08-08 09:54:24,179] INFO  Reset offerLeadership backoff (mesosphere.marathon.core.election.impl.ExponentialBackoff:pool-4-thread-1)
[2017-08-08 09:54:24,179] INFO  2 further revives still needed. Repeating reviveOffers according to --revive_offers_repetitions 3 (mesosphere.marathon.core.flow.impl.ReviveOffersActor:marathon-akka.actor.default-dispatcher-9)
[2017-08-08 09:54:24,179] INFO  Became active. Accepting event streaming requests. (mesosphere.marathon.core.event.impl.stream.HttpEventStreamActor:marathon-akka.actor.default-dispatcher-8)
[2017-08-08 09:54:24,179] INFO  => Schedule next revive at 2017-08-08T16:54:29.176Z in 4998 milliseconds, adhering to --min_revive_offers_interval 5000 (ms) (mesosphere.marathon.core.flow.impl.ReviveOffersActor:marathon-akka.actor.default-dispatcher-16)
[2017-08-08 09:54:24,179] INFO  Starting scheduler actor (mesosphere.marathon.MarathonSchedulerActor:marathon-akka.actor.default-dispatcher-16)
[2017-08-08 09:54:24,180] INFO  Recovering all deployments on leader election (mesosphere.marathon.upgrade.DeploymentManager:marathon-akka.actor.default-dispatcher-13)
2017-08-08 09:54:24,183:5764(0x70000b0c6000):ZOO_INFO@log_env@726: Client environment:zookeeper.version=zookeeper C client 3.4.8
2017-08-08 09:54:24,184:5764(0x70000b0c6000):ZOO_INFO@log_env@730: Client environment:host.name=wabotmac0697034.gsm1900.org
2017-08-08 09:54:24,184:5764(0x70000b0c6000):ZOO_INFO@log_env@737: Client environment:os.name=Darwin
2017-08-08 09:54:24,184:5764(0x70000b0c6000):ZOO_INFO@log_env@738: Client environment:os.arch=16.7.0
2017-08-08 09:54:24,184:5764(0x70000b0c6000):ZOO_INFO@log_env@739: Client environment:os.version=Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64
2017-08-08 09:54:24,184:5764(0x70000b0c6000):ZOO_INFO@log_env@747: Client environment:user.name=skausha3
2017-08-08 09:54:24,185:5764(0x70000b0c6000):ZOO_INFO@log_env@755: Client environment:user.home=/Users/skausha3
I0808 09:54:24.183789 160935936 sched.cpp:232] Version: 1.3.0
2017-08-08 09:54:24,185:5764(0x70000b0c6000):ZOO_INFO@log_env@767: Client environment:user.dir=/Users/skausha3/Downloads/marathon-1.4.3
2017-08-08 09:54:24,185:5764(0x70000b0c6000):ZOO_INFO@zookeeper_init@800: Initiating client connection, host=localhost:2181 sessionTimeout=10000 watcher=0x124c01930 sessionId=0 sessionPasswd=<null> context=0x7f8468a48890 flags=0
[2017-08-08 09:54:24,187] INFO  Scheduler actor ready (mesosphere.marathon.MarathonSchedulerActor:marathon-akka.actor.default-dispatcher-12)
[2017-08-08 09:54:24,189] INFO  Creating tombstone for old twitter commons leader election (mesosphere.marathon.core.election.impl.CuratorElectionService:pool-4-thread-1)
2017-08-08 09:54:24,190:5764(0x70000b3d8000):ZOO_INFO@check_events@1728: initiated connection to server [::1:2181]
2017-08-08 09:54:24,191:5764(0x70000b3d8000):ZOO_INFO@check_events@1775: session establishment complete on server [::1:2181], sessionId=0x15dc2c0bf7f0007, negotiated timeout=10000
I0808 09:54:24.193064 186433536 group.cpp:340] Group process (zookeeper-group(1)@10.83.57.98:62799) connected to ZooKeeper
I0808 09:54:24.193308 186433536 group.cpp:830] Syncing group operations: queue size (joins, cancels, datas) = (0, 0, 0)
I0808 09:54:24.193462 186433536 group.cpp:418] Trying to create path '/mesos' in ZooKeeper
Assertion failed: (0), function hash, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/cmph/cmph-6/src/hash.c, line 35.
Abort trap: 6


On Monday, August 7, 2017 at 9:44:06 AM UTC-7, Sarvesh Kaushal wrote:

Sarvesh Kaushal

unread,
Aug 8, 2017, 2:06:56 PM8/8/17
to marathon-framework
I was able to run it successfully with:

MESOS_NATIVE_JAVA_LIBRARY=/usr/local/lib/libmesos.dylib ./bin/start --master local --zk zk://localhost:2181/marathon
Reply all
Reply to author
Forward
0 new messages