Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make storm ui port configurable

  • Loading branch information...
commit ccbf578c730da0b1e745387a65c3df8b0a2f8f2a 1 parent 6fd04ab
@nathanmarz authored
View
2  conf/defaults.yaml
@@ -22,6 +22,8 @@ nimbus.task.launch.secs: 240
nimbus.reassign: true
nimbus.file.copy.expiration.secs: 600
+ui.port: 8080
+
### supervisor.* configs are for node supervisors
# Define the amount of workers that can be run on this machine. Each worker is assigned a port to use for communication
supervisor.slots.ports:
View
2  src/clj/backtype/storm/ui/core.clj
@@ -679,4 +679,4 @@
(handler/site main-routes))
(defn -main []
- (run-jetty app {:port 8080}))
+ (run-jetty app {:port (int (*STORM-CONF* UI-PORT))}))
View
5 src/jvm/backtype/storm/Config.java
@@ -133,6 +133,11 @@
public static String NIMBUS_FILE_COPY_EXPIRATION_SECS = "nimbus.file.copy.expiration.secs";
/**
+ * Storm UI binds to this port.
+ */
+ public static String UI_PORT = "ui.port";
+
+ /**
* A list of ports that can run workers on this supervisor. Each worker uses one port, and
* the supervisor will only run one worker per port. Use this configuration to tune
* how many workers run on each machine.
Please sign in to comment.
Something went wrong with that request. Please try again.