In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you the "ES search installation will encounter what problems", the content is easy to understand, clear, hope to help you solve the doubt, the following let the editor lead you to study and learn "ES search installation will encounter what problems" this article.
Access port 9200 after ES installation to display normal version data, but an error is reported when using search
{"error": {"root_cause": [{"type": "cluster_block_exception", "reason": "blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];"}], "type": "cluster_block_exception", "reason": "blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];"}, "status": 503}
Because I am not familiar with it, I have been using this mistake to investigate. I have checked a lot of information, but it is of no avail.
Later, I saw that you can check the status with http://localhost:9200/_cluster/health?pretty=true and return an error:
{"error": {"root_cause": [{"type": "master_not_discovered_exception", "reason": null}], "type": "master_not_discovered_exception", "reason": null}, "status": 503}
Check along this path and find that the reason is that all the node names set in the cluster are previously modified, of course, you can also use the default, which is currently stand-alone, and you can put it into one node. Note here that if it is currently a single node, be sure to change the value to the name of the node, otherwise, although the startup is successful, there will be a "master_not_discovered_exception" error when adding data to the elasticsearch service through the curl command.
Cluster.initial_master_nodes: ["node-1"] xpack.security.transport.ssl.enabled: truexpack.security.enabled: true
After setting up the node, status green, problem solved
The above is all the contents of the article "what will happen to the installation of ES search?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.