31z4 / storm-docker

Docker image packaging for Apache Storm
MIT License
52 stars 26 forks source link

Storm UI not working. NimbusLeaderNotFoundException #12

Closed sunilsun closed 7 years ago

sunilsun commented 7 years ago

org.apache.storm.utils.NimbusLeaderNotFoundException: Could not find leader nimbus from seed hosts ["nimbus"]. Did you specify a valid list of nimbus hosts for config nimbus.seeds? at org.apache.storm.utils.NimbusClient.getConfiguredClientAs(NimbusClient.java:111) at org.apache.storm.ui.core$all_topologies_summary.invoke(core.clj:509) at org.apache.storm.ui.core$fn9557.invoke(core.clj:1144) at org.apache.storm.shade.compojure.core$make_route$fn__5962.invoke(core.clj:100) at org.apache.storm.shade.compojure.core$if_route$fn5950.invoke(core.clj:46) at org.apache.storm.shade.compojure.core$if_method$fn5943.invoke(core.clj:31) at org.apache.storm.shade.compojure.core$routing$fn5968.invoke(core.clj:113) at clojure.core$some.invoke(core.clj:2570) at org.apache.storm.shade.compojure.core$routing.doInvoke(core.clj:113) at clojure.lang.RestFn.applyTo(RestFn.java:139) at clojure.core$apply.invoke(core.clj:632) at org.apache.storm.shade.compojure.core$routes$fn5972.invoke(core.clj:118) at org.apache.storm.shade.ring.middleware.cors$wrap_cors$fn8877.invoke(cors.clj:149) at org.apache.storm.shade.ring.middleware.json$wrap_json_params$fn8824.invoke(json.clj:56) at org.apache.storm.shade.ring.middleware.multipart_params$wrap_multipart_params$fn6604.invoke(multipart_params.clj:118) at org.apache.storm.shade.ring.middleware.reload$wrap_reload$fn7887.invoke(reload.clj:22) at org.apache.storm.ui.helpers$requests_middleware$fn__6857.invoke(helpers.clj:50) at org.apache.storm.ui.core$catch_errors$fn9744.invoke(core.clj:1428) at org.apache.storm.shade.ring.middleware.keyword_params$wrap_keyword_params$fn6524.invoke(keyword_params.clj:35) at org.apache.storm.shade.ring.middleware.nested_params$wrap_nested_params$fn6567.invoke(nested_params.clj:84) at org.apache.storm.shade.ring.middleware.params$wrap_params$fn6496.invoke(params.clj:64) at org.apache.storm.shade.ring.middleware.multipart_params$wrap_multipart_params$fn6604.invoke(multipart_params.clj:118) at org.apache.storm.shade.ring.middleware.flash$wrap_flash$fn6819.invoke(flash.clj:35) at org.apache.storm.shade.ring.middleware.session$wrap_session$fn6805.invoke(session.clj:98) at org.apache.storm.shade.ring.util.servlet$make_service_method$fn6354.invoke(servlet.clj:127) at org.apache.storm.shade.ring.util.servlet$servlet$fn6358.invoke(servlet.clj:136) at org.apache.storm.shade.ring.util.servlet.proxy$javax.servlet.http.HttpServlet$ff19274a.service(Unknown Source) at org.apache.storm.shade.org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:654) at org.apache.storm.shade.org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1320) at org.apache.storm.logging.filters.AccessLoggingFilter.handle(AccessLoggingFilter.java:47) at org.apache.storm.logging.filters.AccessLoggingFilter.doFilter(AccessLoggingFilter.java:39) at org.apache.storm.shade.org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1291) at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93) at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28) at org.apache.storm.ui.helpers$x_frame_options_filter_handler$fn__6950.invoke(helpers.clj:189) at org.apache.storm.ui.helpers.proxy$java.lang.Object$Filter$abec9a8f.doFilter(Unknown Source) at org.apache.storm.shade.org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1291) at org.apache.storm.shade.org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:247) at org.apache.storm.shade.org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:210) at org.apache.storm.shade.org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1291) at org.apache.storm.shade.org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:443) at org.apache.storm.shade.org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1044) at org.apache.storm.shade.org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:372) at org.apache.storm.shade.org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:978) at org.apache.storm.shade.org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.apache.storm.shade.org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.apache.storm.shade.org.eclipse.jetty.server.Server.handle(Server.java:369) at org.apache.storm.shade.org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486) at org.apache.storm.shade.org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:933) at org.apache.storm.shade.org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:995) at org.apache.storm.shade.org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) at org.apache.storm.shade.org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.apache.storm.shade.org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.apache.storm.shade.org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) at org.apache.storm.shade.org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at org.apache.storm.shade.org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.apache.storm.shade.org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:748)

31z4 commented 7 years ago

Please provide additional details about how you run it as well as your dokcer version and host environment.

flyca commented 7 years ago

Have the similar issue docker-compose version 1.14.0, build c7bdf9e

`version: '2' services: zookeeper: image: zookeeper container_name: zookeeper restart: always

nimbus:
    image: 31z4/storm
    container_name: nimbus
    command: >
      storm nimbus
        -c storm.zookeeper.servers="[\"zookeeper\"]"
        -c nimbus.seeds="[\"nimbus\"]"
        -c storm.local.hostname=localhost
    depends_on:
        - zookeeper
    links:
        - zookeeper
    restart: always
    ports:
        - "6627:6627"

supervisor:
    image: 31z4/storm
    container_name: supervisor
    command: >
      storm supervisor
        -c nimbus.seeds="[\"nimbus\"]"
    depends_on:
        - nimbus
    restart: always

ui:
    image: 31z4/storm
    container_name: ui
    command: >
      storm ui
        -c nimbus.seeds="[\"nimbus\"]"
    depends_on:
        - nimbus
        - supervisor
    ports:
        - "8080:8080"
    restart: always

error: org.apache.storm.utils.NimbusLeaderNotFoundException: Could not find leader nimbus from seed hosts ["nimbus"]. Did you specify a valid list of nimbus hosts for config nimbus.seeds? at org.apache.storm.utils.NimbusClient.getConfiguredClientAs(NimbusClient.java:111)`

31z4 commented 7 years ago

The error is caused by storm.local.hostname=localhost setting. You should not touch this setting so that storm uses hostnames provided by Docker.