Elasticsearch service can not install in windows, When I run blow command:
.\elasticsearch-service.bat install
This output displayed in the command prompt:
C:\Users\Kiarash\Desktop\elasticsearch\bin>.\elasticsearch-service.bat install
Installing service : "elasticsearch-service-x64"
Using JAVA_HOME (64-bit): "C:\Program Files\Java\jdk1.8.0_121"
'findstr /b \- "C:\Users\Kiarash\Desktop\elasticsearch\config\jvm.options" | findstr /b /v "\-server \-client"' is not recognized as an internal or external command,
operable program or batch file.
The syntax of the command is incorrect.
Try the following: In the Elasticsearch-service properties (.\elasticsearch-service.bat manager), under the Java tab, untick "use Default". stop/start service.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.