marathon在docker容器中启动无法查看marathon ui
怪我咯
怪我咯 2017-04-24 09:09:07
0
1
1032

pre env

  1. AWS上启动3个zookeeper node,跑在docker容器中并且正常运行.

  2. AWS上启动3个mesos master,跑在docker容器中,用zookeeper做master选举.master正常运行

  3. AWS上启动3个mesos slave,跑在docker容器总,正确配置master和zk的url,正常运行

  4. 所有的容器启动时--net=host,使用主机的网络.
    下面是mesos master和mesos slave的截图

start marathon

marathon依赖mesos,所以我在docker image中安装了mesos,marathon dockerfile地址.

我在aws上启动一个marathon docker容器,进去执行命令:

cd marathon_home
bin/start --master zk://mesos_url_on_zk/mesos --zk zk://zk_url:2181/marathon

下面是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/lib/libmesos.so'
[2016-01-12 15:29:45,919] INFO Starting Marathon 0.13.0 with --https_address 172.31.6.60 --http_address 172.31.6.60 --hostname 54.223.189.23 --master zk://172.31.9.182:2181,172.31.0.16:2181,172.31.0.221:2181/mesos --zk zk://172.31.9.182:2181,172.31.0.16:2181,172.31.0.221:2181/marathon (mesosphere.marathon.Main$:main)
[2016-01-12 15:29:46,919] INFO Connecting to Zookeeper... (mesosphere.marathon.Main$:main)
[2016-01-12 15:29:46,930] INFO Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT (org.apache.zookeeper.ZooKeeper:main)
[2016-01-12 15:29:46,930] INFO Client environment:host.name=ip-172-31-6-60.cn-north-1.compute.internal (org.apache.zookeeper.ZooKeeper:main)
[2016-01-12 15:29:46,930] INFO Client environment:java.version=1.8.0_66 (org.apache.zookeeper.ZooKeeper:main)
[2016-01-12 15:29:46,930] INFO Client environment:java.vendor=Oracle Corporation (org.apache.zookeeper.ZooKeeper:main)
[2016-01-12 15:29:46,930] INFO Client environment:java.home=/usr/jre1.8.0_66 (org.apache.zookeeper.ZooKeeper:main)
[2016-01-12 15:29:46,930] INFO Client environment:java.class.path=bin/../target/scala-2.11/marathon-assembly-0.13.0.jar (org.apache.zookeeper.ZooKeeper:main)
[2016-01-12 15:29:46,930] INFO Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib (org.apache.zookeeper.ZooKeeper:main)
[2016-01-12 15:29:46,930] INFO Client environment:java.io.tmpdir=/tmp (org.apache.zookeeper.ZooKeeper:main)
[2016-01-12 15:29:46,930] INFO Client environment:java.compiler=<NA> (org.apache.zookeeper.ZooKeeper:main)
[2016-01-12 15:29:46,930] INFO Client environment:os.name=Linux (org.apache.zookeeper.ZooKeeper:main)
[2016-01-12 15:29:46,931] INFO Client environment:os.arch=amd64 (org.apache.zookeeper.ZooKeeper:main)
[2016-01-12 15:29:46,931] INFO Client environment:os.version=3.10.0-327.4.4.el7.x86_64 (org.apache.zookeeper.ZooKeeper:main)
[2016-01-12 15:29:46,931] INFO Client environment:user.name=root (org.apache.zookeeper.ZooKeeper:main)
[2016-01-12 15:29:46,931] INFO Client environment:user.home=/root (org.apache.zookeeper.ZooKeeper:main)
[2016-01-12 15:29:46,931] INFO Client environment:user.dir=/usr/local/marathon-0.13.0 (org.apache.zookeeper.ZooKeeper:main)
[2016-01-12 15:29:46,933] INFO Initiating client connection, connectString=ip-172-31-9-182.cn-north-1.compute.internal:2181,ip-172-31-0-16.cn-north-1.compute.internal:2181,ip-172-31-0-221.cn-north-1.compute.internal:2181 sessionTimeout=10000 watcher=com.twitter.common.zookeeper.ZooKeeperClient$3@25f9407e (org.apache.zookeeper.ZooKeeper:main)
[2016-01-12 15:29:46,956] INFO Opening socket connection to server ip-172-31-9-182.cn-north-1.compute.internal/172.31.9.182:2181. Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn:main-SendThread(ip-172-31-9-182.cn-north-1.compute.internal:2181))
[2016-01-12 15:29:47,029] INFO Socket connection established to ip-172-31-9-182.cn-north-1.compute.internal/172.31.9.182:2181, initiating session (org.apache.zookeeper.ClientCnxn:main-SendThread(ip-172-31-9-182.cn-north-1.compute.internal:2181))
[2016-01-12 15:29:47,036] INFO Session establishment complete on server ip-172-31-9-182.cn-north-1.compute.internal/172.31.9.182:2181, sessionid = 0x15234fcaff90008, negotiated timeout = 10000 (org.apache.zookeeper.ClientCnxn:main-SendThread(ip-172-31-9-182.cn-north-1.compute.internal:2181))
[2016-01-12 15:29:47,447] 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@6a969fb8]. This could indicate a bug.  The method may be intercepted twice, or may not be intercepted at all. (com.google.inject.internal.ProxyFactory:main)
[2016-01-12 15:29:47,647] INFO Logging initialized @2110ms (org.eclipse.jetty.util.log:main)
[2016-01-12 15:29:48,144] INFO Slf4jLogger started (akka.event.slf4j.Slf4jLogger:marathon-akka.actor.default-dispatcher-4)
[2016-01-12 15:29:48,306] INFO Registering in Zookeeper with hostPort:54.223.189.23:8080 (mesosphere.marathon.MarathonModule:main)
[2016-01-12 15:29:48,356] INFO Calling reviveOffers is enabled. Use --disable_revive_offers_for_new_apps to disable. (mesosphere.marathon.core.flow.FlowModule:main)
[2016-01-12 15:29:48,407] INFO Started status update processor with steps:
* continueOnError(notifyHealthCheckManager})
* continueOnError(notifyRateLimiter})
* updateTaskTracker
* continueOnError(notifyLaunchQueue})
* continueOnError(emitUpdate})
* continueOnError(postTaskStatusEvent})
* continueOnError(scaleApp})
* acknowledgeTaskUpdate (mesosphere.marathon.core.task.tracker.impl.TaskStatusUpdateProcessorImpl$$EnhancerByGuice$$b94cdba:main)
[2016-01-12 15:29:48,418] INFO All actors suspended:
* Actor[akka://marathon/user/offerMatcherLaunchTokens#-657350210]
* Actor[akka://marathon/user/launchQueue#899426934]
* Actor[akka://marathon/user/offerMatcherManager#265753601]
* Actor[akka://marathon/user/rateLimiter#-819669541]
* Actor[akka://marathon/user/reviveOffersWhenWanted#2093783490]
* Actor[akka://marathon/user/killOverdueStagedTasks#1504898866] (mesosphere.marathon.core.leadership.impl.LeadershipCoordinatorActor:marathon-akka.actor.default-dispatcher-9)
[2016-01-12 15:29:48,540] INFO Now standing by. Closing existing handles and rejecting new. (mesosphere.marathon.event.http.HttpEventStreamActor:marathon-akka.actor.default-dispatcher-9)
[2016-01-12 15:29:48,587] INFO Adding HTTP support. (mesosphere.chaos.http.HttpModule:main)
[2016-01-12 15:29:48,588] INFO No HTTPS support configured. (mesosphere.chaos.http.HttpModule:main)
[2016-01-12 15:29:48,625] INFO Starting up (mesosphere.marathon.MarathonSchedulerService$$EnhancerByGuice$$1bda83eb:MarathonSchedulerService$$EnhancerByGuice$$1bda83eb)
[2016-01-12 15:29:48,625] INFO Beginning run (mesosphere.marathon.MarathonSchedulerService$$EnhancerByGuice$$1bda83eb:MarathonSchedulerService$$EnhancerByGuice$$1bda83eb)
[2016-01-12 15:29:48,626] INFO Will offer leadership after 500 milliseconds backoff (mesosphere.marathon.MarathonSchedulerService$$EnhancerByGuice$$1bda83eb:MarathonSchedulerService$$EnhancerByGuice$$1bda83eb)
[2016-01-12 15:29:48,633] INFO jetty-9.3.z-SNAPSHOT (org.eclipse.jetty.server.Server:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:48,822] INFO Registering com.codahale.metrics.jersey.InstrumentedResourceMethodDispatchAdapter as a provider class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:48,824] INFO Registering mesosphere.marathon.api.MarathonExceptionMapper as a provider class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:48,824] INFO Registering mesosphere.marathon.api.v2.AppsResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:48,824] INFO Registering mesosphere.marathon.api.v2.TasksResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:48,824] INFO Registering mesosphere.marathon.api.v2.EventSubscriptionsResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:48,824] INFO Registering mesosphere.marathon.api.v2.QueueResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:48,824] INFO Registering mesosphere.marathon.api.v2.GroupsResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:48,824] INFO Registering mesosphere.marathon.api.v2.InfoResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:48,824] INFO Registering mesosphere.marathon.api.v2.LeaderResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:48,824] INFO Registering mesosphere.marathon.api.v2.DeploymentsResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:48,824] INFO Registering mesosphere.marathon.api.v2.ArtifactsResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:48,825] INFO Registering mesosphere.marathon.api.v2.SchemaResource as a root resource class (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:48,826] INFO Initiating Jersey application, version 'Jersey: 1.18.1 02/19/2014 03:28 AM' (com.sun.jersey.server.impl.application.WebApplicationImpl:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:48,867] INFO Binding com.codahale.metrics.jersey.InstrumentedResourceMethodDispatchAdapter to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:48,881] INFO Binding mesosphere.marathon.api.MarathonExceptionMapper to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:49,173] INFO Using HA and therefore offering leadership (mesosphere.marathon.MarathonSchedulerService$$EnhancerByGuice$$1bda83eb:pool-1-thread-2)
[2016-01-12 15:29:49,202] INFO Set group member ID to member_0000000003 (com.twitter.common.zookeeper.Group:pool-1-thread-2)
[2016-01-12 15:29:49,223] INFO Candidate /marathon/leader/member_0000000003 is now leader of group: [member_0000000003] (com.twitter.common.zookeeper.CandidateImpl:pool-1-thread-2)
[2016-01-12 15:29:49,223] INFO Elected (Leader Interface) (mesosphere.marathon.MarathonSchedulerService$$EnhancerByGuice$$1bda83eb:pool-1-thread-2)
[2016-01-12 15:29:49,231] INFO Initiating client connection, connectString=172.31.9.182:2181,172.31.0.16:2181,172.31.0.221:2181 sessionTimeout=10000 watcher=com.twitter.zk.EventBroker@244a63b3 (org.apache.zookeeper.ZooKeeper:pool-1-thread-2)
[2016-01-12 15:29:49,237] INFO Opening socket connection to server 172.31.0.16/172.31.0.16:2181. Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn:pool-1-thread-2-SendThread(172.31.0.16:2181))
[2016-01-12 15:29:49,241] INFO Socket connection established to 172.31.0.16/172.31.0.16:2181, initiating session (org.apache.zookeeper.ClientCnxn:pool-1-thread-2-SendThread(172.31.0.16:2181))
[2016-01-12 15:29:49,248] INFO Session establishment complete on server 172.31.0.16/172.31.0.16:2181, sessionid = 0x25234fcb06f0003, negotiated timeout = 10000 (org.apache.zookeeper.ClientCnxn:pool-1-thread-2-SendThread(172.31.0.16:2181))
[2016-01-12 15:29:49,354] INFO Binding mesosphere.marathon.api.v2.AppsResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:49,361] INFO Migration successfully applied for version Version(0, 13, 0) (mesosphere.marathon.state.Migration:pool-1-thread-3)
[2016-01-12 15:29:49,361] INFO Call onElected leadership callbacks on EntityStoreCache(MarathonStore(app:)), EntityStoreCache(MarathonStore(group:)), EntityStoreCache(MarathonStore(deployment:)), EntityStoreCache(MarathonStore(framework:)), EntityStoreCache(MarathonStore(taskFailure:)), EntityStoreCache(MarathonStore(task:)), EntityStoreCache(MarathonStore(events:)) (mesosphere.marathon.MarathonSchedulerService$$EnhancerByGuice$$1bda83eb:pool-1-thread-2)
[2016-01-12 15:29:49,440] INFO Finished onElected leadership callbacks (mesosphere.marathon.MarathonSchedulerService$$EnhancerByGuice$$1bda83eb:pool-1-thread-2)
[2016-01-12 15:29:49,449] INFO started RateLimiterActor (mesosphere.marathon.core.launchqueue.impl.RateLimiterActor:marathon-akka.actor.default-dispatcher-7)
[2016-01-12 15:29:49,466] INFO All actors active:
* Actor[akka://marathon/user/offerMatcherLaunchTokens#-657350210]
* Actor[akka://marathon/user/launchQueue#899426934]
* Actor[akka://marathon/user/offerMatcherManager#265753601]
* Actor[akka://marathon/user/rateLimiter#-819669541]
* Actor[akka://marathon/user/reviveOffersWhenWanted#2093783490]
* Actor[akka://marathon/user/killOverdueStagedTasks#1504898866] (mesosphere.marathon.core.leadership.impl.LeadershipCoordinatorActor:marathon-akka.actor.default-dispatcher-5)
[2016-01-12 15:29:49,476] INFO Received offers NOT WANTED notification, canceling 0 revives (mesosphere.marathon.core.flow.impl.ReviveOffersActor:marathon-akka.actor.default-dispatcher-7)
[2016-01-12 15:29:49,481] INFO Loading plugins implementing 'mesosphere.marathon.plugin.auth.Authorizer' from these urls: [] (mesosphere.marathon.core.plugin.impl.PluginManagerImpl:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:49,481] INFO Found 0 plugins. (mesosphere.marathon.core.plugin.impl.PluginManagerImpl:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:49,483] INFO Loading plugins implementing 'mesosphere.marathon.plugin.auth.Authenticator' from these urls: [] (mesosphere.marathon.core.plugin.impl.PluginManagerImpl:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:49,483] INFO Found 0 plugins. (mesosphere.marathon.core.plugin.impl.PluginManagerImpl:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:49,488] INFO Binding mesosphere.marathon.api.v2.TasksResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:49,490] INFO Binding mesosphere.marathon.api.v2.EventSubscriptionsResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:49,491] INFO Binding mesosphere.marathon.api.v2.QueueResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:49,494] INFO Binding mesosphere.marathon.api.v2.GroupsResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:49,495] INFO Binding mesosphere.marathon.api.v2.InfoResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:49,496] INFO Binding mesosphere.marathon.api.v2.LeaderResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:49,498] INFO Binding mesosphere.marathon.api.v2.DeploymentsResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:49,505] INFO Binding mesosphere.marathon.api.v2.ArtifactsResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:49,511] INFO Binding mesosphere.marathon.api.v2.SchemaResource to GuiceManagedComponentProvider with the scope "Singleton" (com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:49,540] INFO Create new Scheduler Driver with frameworkId: Some(value: "7867dbf1-8a4a-436e-b021-f8ae00560669-0000"
) (mesosphere.marathon.MarathonSchedulerDriver$:pool-1-thread-2)
[2016-01-12 15:29:49,542] INFO Started o.e.j.s.ServletContextHandler@2281eb4a{/,null,AVAILABLE} (org.eclipse.jetty.server.handler.ContextHandler:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:49,555] INFO Started ServerConnector@31a0ad2b{HTTP/1.1,[http/1.1]}{172.31.6.60:8080} (org.eclipse.jetty.server.ServerConnector:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:49,555] INFO Started @4018ms (org.eclipse.jetty.server.Server:HttpService$$EnhancerByGuice$$dd61a6eb STARTING)
[2016-01-12 15:29:49,555] INFO All services up and running. (mesosphere.marathon.Main$:main)
[2016-01-12 15:29:49,585] INFO Elect leadership (mesosphere.marathon.MarathonSchedulerService$$EnhancerByGuice$$1bda83eb:pool-1-thread-2)
[2016-01-12 15:29:49,586] INFO Running driver (mesosphere.marathon.MarathonSchedulerService$$EnhancerByGuice$$1bda83eb:pool-1-thread-2)
I0112 23:29:49.587905   505 sched.cpp:166] Version: 0.26.0
[2016-01-12 15:29:49,590] INFO Reset offerLeadership backoff (mesosphere.marathon.MarathonSchedulerService$$EnhancerByGuice$$1bda83eb:pool-1-thread-2)
[2016-01-12 15:29:49,593] INFO Starting scheduler actor (mesosphere.marathon.MarathonSchedulerActor:marathon-akka.actor.default-dispatcher-4)
[2016-01-12 15:29:49,593] INFO Became active. Accepting event streaming requests. (mesosphere.marathon.event.http.HttpEventStreamActor:marathon-akka.actor.default-dispatcher-4)
[2016-01-12 15:29:49,598] INFO Scheduler actor ready (mesosphere.marathon.MarathonSchedulerActor:marathon-akka.actor.default-dispatcher-6)
2016-01-12 23:29:49,601:443(0x7f585e653700):ZOO_INFO@log_env@712: Client environment:zookeeper.version=zookeeper C client 3.4.5
2016-01-12 23:29:49,604:443(0x7f585e653700):ZOO_INFO@log_env@716: Client environment:host.name=ip-172-31-6-60.cn-north-1.compute.internal
2016-01-12 23:29:49,604:443(0x7f585e653700):ZOO_INFO@log_env@723: Client environment:os.name=Linux
2016-01-12 23:29:49,604:443(0x7f585e653700):ZOO_INFO@log_env@724: Client environment:os.arch=3.10.0-327.4.4.el7.x86_64
2016-01-12 23:29:49,604:443(0x7f585e653700):ZOO_INFO@log_env@725: Client environment:os.version=#1 SMP Thu Dec 17 15:51:24 EST 2015
2016-01-12 23:29:49,605:443(0x7f585e653700):ZOO_INFO@log_env@733: Client environment:user.name=(null)
2016-01-12 23:29:49,605:443(0x7f585e653700):ZOO_INFO@log_env@741: Client environment:user.home=/root
2016-01-12 23:29:49,605:443(0x7f585e653700):ZOO_INFO@log_env@753: Client environment:user.dir=/usr/local/marathon-0.13.0
2016-01-12 23:29:49,605:443(0x7f585e653700):ZOO_INFO@zookeeper_init@786: Initiating client connection, host=172.31.9.182:2181,172.31.0.16:2181,172.31.0.221:2181 sessionTimeout=10000 watcher=0x7f58675bbd00 sessionId=0 sessionPasswd=<null> context=0x7f58942d25b0 flags=0
2016-01-12 23:29:49,607:443(0x7f585c64f700):ZOO_INFO@check_events@1703: initiated connection to server [172.31.0.221:2181]
2016-01-12 23:29:49,611:443(0x7f585c64f700):ZOO_INFO@check_events@1750: session establishment complete on server [172.31.0.221:2181], sessionId=0x35234fe4c170007, negotiated timeout=10000
I0112 23:29:49.611366   514 group.cpp:331] Group process (group(1)@172.31.6.60:40270) connected to ZooKeeper
I0112 23:29:49.611384   514 group.cpp:805] Syncing group operations: queue size (joins, cancels, datas) = (0, 0, 0)
I0112 23:29:49.611392   514 group.cpp:403] Trying to create path '/mesos' in ZooKeeper
I0112 23:29:49.612319   514 detector.cpp:156] Detected a new leader: (id='0')
I0112 23:29:49.612392   514 group.cpp:674] Trying to get '/mesos/json.info_0000000000' in ZooKeeper
I0112 23:29:49.612978   514 detector.cpp:482] A new leading master (UPID=master@172.31.9.182:5050) is detected
I0112 23:29:49.613021   514 sched.cpp:264] New master detected at master@172.31.9.182:5050
I0112 23:29:49.613237   514 sched.cpp:274] No credentials provided. Attempting to register without authentication
I0112 23:29:49.615180   514 sched.cpp:643] Framework registered with 7867dbf1-8a4a-436e-b021-f8ae00560669-0000
[2016-01-12 15:29:49,618] INFO Registered as 7867dbf1-8a4a-436e-b021-f8ae00560669-0000 to master '7867dbf1-8a4a-436e-b021-f8ae00560669' (mesosphere.marathon.MarathonScheduler$$EnhancerByGuice$$bdb6ea39:Thread-13)
[2016-01-12 15:29:49,618] INFO Store framework id: value: "7867dbf1-8a4a-436e-b021-f8ae00560669-0000"
 (mesosphere.util.state.FrameworkIdUtil:Thread-13)
[2016-01-12 15:29:49,652] INFO Ignoring SchedulerRegisteredEvent because no one is currently interested in offers (mesosphere.marathon.core.flow.impl.ReviveOffersActor:marathon-akka.actor.default-dispatcher-3)
[2016-01-12 15:30:04,593] INFO Syncing tasks for all apps (mesosphere.marathon.SchedulerActions:marathon-akka.actor.default-dispatcher-6)
[2016-01-12 15:30:04,595] INFO Requesting task reconciliation with the Mesos master (mesosphere.marathon.SchedulerActions:marathon-akka.actor.default-dispatcher-6)
[2016-01-12 15:30:04,595] INFO Message [mesosphere.marathon.MarathonSchedulerActor$TasksReconciled$] from Actor[akka://marathon/user/MarathonScheduler/$a#-1465431683] to Actor[akka://marathon/deadLetters] was not delivered. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. (akka.actor.DeadLetterActorRef:marathon-akka.actor.default-dispatcher-4)

进到mesos master的ui界面能够看到marathon框架已经注册了

但是输入marathon的vm的外网IP和8080端口发现看不到marathon的ui,阅读marathon 文档,启动命令是正确的,但是看不到marathon的web ui.麻烦大家帮忙看下.

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
巴扎黑

version 1.0

Judging from ps aux|grep marathon, marathon starts normally. However, after entering floating ip(external network ip) and port, it cannot be accessed.

Now the troubleshooting results show that there may be a problem with the network configuration of Amazon's AMI. Because there is no problem using curl private ip:8080.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!