New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce elasticsearch.in.bat (i.e. es.in for Windows) #8244
Conversation
LGTM, can't verify it on windows now, maybe someone else can? |
Wondering if we should also change For example, if someone want to set path.plugins in elasticsearch.in.bat, it should be taken into account by the |
Just tested this on my machine and found the following issues with (1) If
The cause of this is because (2) The service name is installed as |
if NOT "%ES_HEAP_NEWSIZE%" == "" set JAVA_OPTS=%JAVA_OPTS% -Xmn%ES_HEAP_NEWSIZE% | ||
|
||
if NOT "%ES_DIRECT_SIZE%" == "" set JAVA_OPTS=%JAVA_OPTS% -XX:MaxDirectMemorySize=%ES_DIRECT_SIZE% | ||
CALL %~dp0elasticsearch.in.bat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@costin The shift command on line 40 is what's throwing off the value of %~dp0
. Changing this line to CALL %SCRIPT_DIR%elasticsearch.in.bat
fixes the issue. I'm just not sure why this wasn't always a problem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gmarz Thanks. Fixed it through %ES_HOME%\bin
(it's what we use through-out the script).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Break-out common functionality between elasticsearch.bat and service.bat Relates elastic#8237
I think this should go into 1.4 as well |
#8243 or some parts of it should go in 1.3 as it provides |
@Mpdreamz could you review this one too please? |
LGTM 👍 @gmarz's issues seem to have all been resolved. Passing parameters such as
|
Rebased as is into 1.4, 1.x and master. Added only |
Break-out common functionality between elasticsearch.bat and service.bat
Relates #8237