-
Notifications
You must be signed in to change notification settings - Fork 25.8k
windows elasticsearch.bat file has problems with certains paths #30606
Copy link
Copy link
Closed
Labels
:Delivery/PackagingRPM and deb packaging, tar and zip archives, shell and batch scriptsRPM and deb packaging, tar and zip archives, shell and batch scripts>bugTeam:DeliveryMeta label for Delivery teamMeta label for Delivery team
Description
Bug report:
Elasticsearch version: 6.2.4
Plugins installed: None
JVM version: 1.8.0_171
OS version: Windows 10 (1511)
Description of the problem including expected versus actual behavior:
I cannot start elastic search using elasticsearch.bat.
The error message is: \Common was unexpected at this time.
Fix
%JAVA% is assigned C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe in elasticsearch-env.bat.
This breaks the last for loop in elasticsearch.bat. This can be fixed be changing it to
for /F "usebackq" %%a in (`CALL %JAVA% -cp "!ES_CLASSPATH!" "org.elasticsearch.tools.launchers.JvmOptionsParser" "!ES_JVM_OPTIONS!" ^|^| echo jvm_options_parser_failed`) do set JVM_OPTIONS=%%a
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Delivery/PackagingRPM and deb packaging, tar and zip archives, shell and batch scriptsRPM and deb packaging, tar and zip archives, shell and batch scripts>bugTeam:DeliveryMeta label for Delivery teamMeta label for Delivery team
Type
Fields
Give feedbackNo fields configured for issues without a type.