STORM-308 Add support for config_value to {supervisor,nimbus,ui,drpc,logviewer} childopts#102
STORM-308 Add support for config_value to {supervisor,nimbus,ui,drpc,logviewer} childopts#102asfgit merged 6 commits intoapache:masterfrom ChitturiPadma:storm-cmd-windows
Conversation
|
You need the JIRA number in the pull request title. |
bin/storm.cmd
Outdated
There was a problem hiding this comment.
Why JAVA_HEAP_MAX? I can see that it works, but it is not an intuitive place to put them at all. And what happens if someone else sets JAVA_HEAP_MAX. This will stomp on it.
There was a problem hiding this comment.
Infact, storm python script doesn't use JAVA_HEAP_MAX. The .cmd files use JAVA_HEAP_MAX as childopts value. If required, we could consider new variable for childopts. My concern is....does JAVA_HEAP_MAX required ? If required, how could we run storm daemons with both JAVA_HEAP_MAX and chilopts value specified on the command line..as they both seem to be in same format as .. -Xmx%%%m
There was a problem hiding this comment.
My concern isn't between compatibility with the python code, it is that JAVA_HEAP_MAX is set by storm-config.cmd but in this code it is overwritten, at least I assume that is what = does in a windows batch script. Why not append or prepend it to STORM_OPTS?
|
This is my idea in reading childopts value. JAVA_HEAP_MAX set by storm-config.cmd is overwritten only when {nimbus,ui,supervisor,drpc,logviewer} is invoked. In other scenarios, default of JAVA_HEAP_MAX is used. As per your comments, what i understood is to use different env variable for childopts and prepend this to STORM_OPTS and not to modify JAVA_HEAP_MAX. Is it so ? |
|
That would be fine. The main thing for me is when I see something named JAVA_MAX_HEAP, I only expect things associated with the java heap to ever be placed in it. So putting other things in there is really confusing. |
…logviewer} childopts
…logviewer} childopts Made changes such that the output of the command that fetches java.library.path is split based on newlines in outer loop and inner loop retrieves the value defined in yaml file
…logviewer} childopts Modified code that uses nested loop to fetch the childopts value from storm.yaml file and used single CHILDOPTS variable to hold the value.
|
Made necessary fixes that would read the childopts and java.library.path from storm.yaml file |
|
Looks OK to me, but I am not a batch file expert. I am +1 on it though. |
|
I had trouble when some of the paths had spaces in them. (I had installed java to I am not a windows cmd syntax expert, but can we handle spaces better by double-quoting as needed? |
|
Yes, ofcourse we handle the spaces. Where exactly have u faced issue because of spaces in the paths ? |
|
Starting nimbus fails, probably because the path set for Current
I suspected it is because of the space, but it could be some other problem. |
|
Yes, when i installed Java in a folder whose name is having spaces, came across the same issue. I wish we could replace %JAVA_HOME% with "%JAVA_HOME%" and ideally this should resolve the issue. |
|
OK, thanks for looking at it. |
|
Any more comments on this pull request ? |
|
Sorry, I might have misunderstood your comment to say you were still working on it. Created STORM-322. Moved my Java installation to a path having no spaces
I am +1 |
|
I would welcome any more comments on this. If not, we would change the state of the issue to resolved and would close it if it is merged |
|
No I just got distracted by other things, and haven't had the chance to merge this in. Will try to get to is shortly. |
…erates-zkdigestpayload Always generate zk digest payload, better validation
Added fixes for reading childopts from backtype.storm.command.config_value.