Uh oh!
There was an error while loading. Please reload this page.
STORM-517: Adding JAVA_SERVICE_NAME to bin/storm - #281
Conversation
- Adds reading an JAVA_SERVICE_NAME environment variable to bin/storm and reads it in as part of generating all_args in exec_storm_class()
harshach
commented
Oct 4, 2014
@solarce any reason not to pass this value from nimbus , supervisor etc methods in storm command. |
nathanmarz
commented
Oct 4, 2014
-1 I've never heard of this environment variable before. What is it used for? Also, you can get these options added to the Java processes already by making use of nimbus.childopts, supervisor.childopts, and worker.childopts, so it's not clear why Storm needs specialized support for this variable. |
solarce
commented
Oct 5, 2014
It's not any existing environment variable, it's just a name I made up. I do use nimbus.childops, etc for adding JMX related arguments because their position in the process arguments doesn't matter. As to why I don't just use nimbus.childopts, etc for this, I'm copying my reasoning from what I wrote in https://issues.apache.org/jira/browse/STORM-517.
I realize that the SNMP truncation of the process arguments is a factor of my environment, but it's not an uncommon way to do process monitoring, and I felt that adding this environment variable that's optional was the least intrusive way to add it. If there is another way for me to get -Dservice= at the beginning of the process arguments with the existing bin/storm, I'd love to hear about it |
nathanmarz
commented
Oct 6, 2014
I see. I'd be fine with a different patch which does not use any environment vars and instead sets -Dstorm.service= to be one of "nimbus", "supervisor", or "worker", passed appropriately in the bin/storm script or where the supervisor launches workers in the code |
solarce
commented
Oct 7, 2014
That makes sense, I'll rework it and test that later this week |
revans2
commented
Jan 8, 2015
@solarce any update on this? |
YSTORM-278 Adds YSTORM_BUILD_NUMBER to select a yinst package version
d2r
commented
Jun 15, 2015
@solarce I think this was taken care of as part of STORM-833: https://github.com/apache/storm/blame/f75cf7c176bf5cae740c2d29999d57de87ea07fa/bin/storm.py#L187 |
d2r
commented
Oct 8, 2015
* apache/master: (47 commits) Added STORM-706 to Changelog Added STORM-1396 to Changelog Add myself to the committer list. adding back accidentally deleted metrics Added STORM-695 to Changelog storm-starter: Guide JDK version to later than 7 This closesapache#281 (STORM-517 is a dupe of STORM-833) Added STORM-1416 to Changelog Add STORM-1426 to Changelog Added STORM-1417 to Changelog STORM-1422 Added STORM-1429 to Changelog AvroGenericRecordBolt instead of SequenceFileBolt Added STORM-1401 to Changelog Added STORM-1424 to Changelog Add STORM-1427 to Changelog Added STORM-1413 to Changelog [STORM-1416] Documentation for state store Added STORM-1412 to Changelog Added STORM-1210 to Changelog ...
STORM-517: Adding JAVA_SERVICE_NAME to bin/storm
variable to bin/storm and reads it in as part of
generating all_args in exec_storm_class()
Meant to be set to something like:
See https://github.com/solarce/storm-cookbook/blob/master/templates/default/storm-upstart-conf.erb#L19 for an example with Chef