Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add storm.home to logback/cluster.xml so workers can find it.

  • Loading branch information...
commit f5205f413ba68d06bd574a5b2bf7a0352203c717 1 parent 4859f0d
@revans2 revans2 authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/clj/backtype/storm/daemon/supervisor.clj
View
5 src/clj/backtype/storm/daemon/supervisor.clj
@@ -409,6 +409,7 @@
(defmethod launch-worker
:distributed [supervisor storm-id port worker-id]
(let [conf (:conf supervisor)
+ storm-home (System/getProperty "storm.home")
stormroot (supervisor-stormdist-root conf storm-id)
stormjar (supervisor-stormjar-path stormroot)
storm-conf (read-supervisor-storm-conf conf storm-id)
@@ -420,8 +421,8 @@
command (str "java -server " childopts
" -Djava.library.path=" (conf JAVA-LIBRARY-PATH)
" -Dlogfile.name=" logfilename
- " -Dstorm.home=" (System/getProperty "storm.home")
- " -Dlogback.configurationFile=logback/cluster.xml"
+ " -Dstorm.home=" storm-home
+ " -Dlogback.configurationFile=" storm-home "/logback/cluster.xml"
" -cp " classpath " backtype.storm.daemon.worker "
(java.net.URLEncoder/encode storm-id) " " (:assignment-id supervisor)
" " port " " worker-id)]
Please sign in to comment.
Something went wrong with that request. Please try again.