1. Error: there should be no \java\jdk1.8.0_20
Solution:
when the Java environment variables are set correctly, it may be because the Java installation path contains spaces and brackets. Reinstall java to a new path without spaces to start successfully
for example, the location of my environment variable JAVAHOME was original:
C:\Program Files (x86)\Java\jdk1.8.0_20
Change it to:
C:\Progra\Java\jdk1.8.0_20
2. An error is reported: ‘elasticsearch.bat ‘is not an internal or external command, nor is it a runnable program or batch file
Check whether you filled in the configuration file, if not, just add the following configuration parameters at the bottom of the elasticsearch.yml file
# Change the name of the cluster so that it doesn't get mixed up with someone else's cluster
cluster.name: el-m
# Change the name of the node
node.name: el_node_m1
# Change the listening address of the ES so that other machines can access it
network.host: 0.0.0.0
# Set the http port for the external service, the default is 9200
http.port: 9200
# Set the path to store the index data
path.data: E:\elasticsearch-8.1.2\data #Switch to your own path
# Set the path to store log files
path.logs: E:\elasticsearch-8.1.2\logs #Switch to your own path
# Turn off http access restrictions
xpack.security.enabled: false
# Add new parameter, head plugin can access es
http.cors.enabled: true
http.cors.allow-origin: "*"
3. Command line printing error log
please check that any required plugins are installed, or check the breaking changes documentation for removed settings
Solution: please refer to the above configuration file
the version of elasticSearch has been updated and changed greatly. When the configuration file is filled with redundant configuration, the above error message may be reported.
Read More:
- How to Solve elasticsearch and logstash Install Error
- How to Solve elasticsearch-7.15.1 operation errors
- How to Solve elasticsearch root user start Error
- How to Solve 0xc1900101 Error (Win10 upgrade Win11)
- How to Solve Docker Error: elasticsearch exception: type=cluster_block_exception, reason=blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];
- How to Solve creating bean with name ‘mappingjackson2httpmessageconverter’ error when elasticsearch advanced client starts‘
- [Solved] Elasticsearch.service failed after enable elasticsearch security features
- How to Solve jmeter Install Error (Three Common Errors)
- VScode: How to Solve golong plug-in install Error
- IDEA: How to Solve Springboot Project install Error
- How to Solve ruby rails Install Error [Windows]
- [app] install and compile libimobililedevice, How to solve the error
- R language: How to Solve DMwR Install Error
- How to Solve Brew install golangci-lint Error
- How to Solve elk7.7.1 logstash Install Error
- [Solved] Elasticsearch error: cannot downgrade a node from version [7.xx.x] to version [7.xx.x]
- How to Solve install dm.xmlsec.binding Error
- How to Solve Hmaster hangs up issue due to namenode switching in Ha mode
- How to Solve Excel Error Log 0: Install Error
- How to Fix win10 video dxgkrnl fatal error