File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
clj/backtype/storm/daemon Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 367
367
:distributed [conf shared-context storm-id supervisor-id port worker-id worker-thread-pids-atom]
368
368
(let [stormroot (supervisor-stormdist-root conf storm-id)
369
369
stormjar (supervisor-stormjar-path stormroot)
370
+ storm-conf (read-supervisor-storm-conf conf storm-id)
370
371
classpath (add-to-classpath (current-classpath ) [stormjar])
371
- childopts (.replaceAll (conf WORKER-CHILDOPTS) " %ID%" (str port))
372
+ childopts (.replaceAll (str (conf WORKER-CHILDOPTS) " " (storm-conf TOPOLOGY-WORKER-CHILDOPTS))
373
+ " %ID%"
374
+ (str port))
372
375
logfilename (str " worker-" port " .log" )
373
376
command (str " java -server " childopts
374
377
" -Djava.library.path=" (conf JAVA-LIBRARY-PATH)
Original file line number Diff line number Diff line change @@ -332,6 +332,11 @@ public class Config extends HashMap<String, Object> {
332
332
* Whether or not to use Java serialization in a topology.
333
333
*/
334
334
public static String TOPOLOGY_FALL_BACK_ON_JAVA_SERIALIZATION ="topology.fall.back.on.java.serialization" ;
335
+
336
+ /**
337
+ * Topology-specific options for the worker child process. This is used in addition to WORKER_CHILDOPTS.
338
+ */
339
+ public static String TOPOLOGY_WORKER_CHILDOPTS ="topology.worker.childopts" ;
335
340
336
341
/**
337
342
* The number of threads that should be used by the zeromq context in each worker process.
You can’t perform that action at this time.
0 commit comments