Today, when I was learning elasticsearch, I didn’t want to run elasticsearch.bat. As a result, soon after running, there was no black frame, only a flashback. I guess it was too fast. I don’t even have a black box. I can’t see any error information.
So I used CMD in the bin directory, as shown in the figure
Then execute the elasticsearch.bat file
Then you can see the error message error occurred during initialization of VM, error occurred during initialization.
Solution: I found Java_Home in my environment variable actually disappeared. Although I can still see the information by typing Java in the CMD window, it just disappeared. I guess it may be related to its disappearance, so I re-created Java_Home, locate the current Java directory, and start elasticsearch.bat again. It starts successfully!
Read More:
- [Solved] Elasticsearch error: cannot downgrade a node from version [7.xx.x] to version [7.xx.x]
- How to Solve elasticsearch root user start Error
- [Solved] Virtualenvwrapper.sh error: There was a problem running the initialization hooks.
- [Solved] The method getContextPath() from the type HttpServletRequest refers to the missing type String
- [Solved] Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no furthe
- How to Solve elasticsearch-7.15.1 operation errors
- This limit can be set by changing the [search.max_open_scroll_context] setting
- [Elasticsearch Exception]Found interface org.elasticsearch.common.bytes.BytesReference
- [Solved] elasticsearch Error: Failed: 1: this action would add [6] total shards, but this cluster currently has [2
- Appium Top 10 Common Error [How to Solve]
- [Solved] Elasticsearch.service failed after enable elasticsearch security features
- [Solved] At least one of these environment variable is needed to run this program
- How to Solve elasticSearch8.1.2 Install Error in Win10
- [Solved] Elasticsearch Error: received plaintext http traffic on an https channel, closing connection…
- Maven configuration error: JAVA_HOME not found in your environment
- Exception: logstash:: pluginloadingerror when importing MySQL data into es in Windows
- [Solved] Elasticsearch-7.2.1 startup error: ERROR: [1] bootstrap checks failed
- Error: a JNI error has occurred, please check your installation and try again
- [Solved] Logging system failed to initialize using configuration from ‘classpathlogbacklogback-spring.xml‘
- JMeter JDBC Error: No pool found named: ‘test‘ [How to Solve]