In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "Elasticsearch entry case analysis". In daily operation, I believe many people have doubts about Elasticsearch entry case analysis. The editor consulted all kinds of data and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts of "Elasticsearch entry case analysis". Next, please follow the editor to study!
Elasticsearch is an open source search engine based on Apache Lucene (TM). Whether in open source or proprietary areas, Lucene can be considered to be by far the most advanced, best-performing, and most fully functional search engine library.
Characteristics
Distributed real-time file storage in which each field is indexed and searchable.
Distributed real-time analysis search engine-- irregular query
It can be expanded to hundreds of servers to deal with PB-level structured or unstructured data.
Elasticsearch also uses Java development and uses Lucene as its core to implement all indexing and search functions, but its goal is to hide the complexity of Lucene through simple RESTful API, thus making full-text search simple.
What can ES do?
Text retrieval (uniform fields), fuzzy query (search), data analysis (provide analysis syntax, such as aggregation)
2.1 preparation work
Install Centos7, recommended memory above 2G, install java1.8 environment, install docker
2.2 start the installation
1. Download elasticsearch+kibana
Docker pull elasticsearch:7.4.2docker pull kibana:7.4.2
2. Install ElasticSearch
Mkdir-p / mydata/elasticsearch/configmkdir-p / mydata/elasticsearch/datamkdir-p / mydata/elasticsearch/pluginsecho "http.host:0.0.0.0" > > / mydata/elasticsearch/config/elasticsearch.yml docker run-- name elasticsearch-p 9200 mydata/elasticsearch/pluginsecho 9200-p 9300 purl 9300\-e "discovery.type=single-node"\-e ES_JAVA_OPTS= "- Xms64m-Xmx512m"\-v / mydata/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml\-v / mydata/elasticsearch/data:/usr/share/elasticsearch/data\-v / mydata/elasticsearch/plugins:/usr/share/elasticsearch/plugins\-d elasticsearch:7.4.2
Image.png
Matters needing attention
After 1 minute, the elasticsearch in docker will abort, and use the following command to view the problem log
Docker logs elasticsearch
Image.png
Cause:
The mistake is that there is no space before and after the colon of the parameter. I have been looking for this problem for a long time.
Write http.host to elasticsearch.yml (note that it conforms to the yml specification, a space before k, a colon assignment, and a space between values and colons)
Echo "http.host:0.0.0.0" > > / mydata/elasticsearch/config/elasticsearch.yml
The second question
Image.png
Insufficient permissions, use
Chmod-R 777 / mydata/elasticsearch/
Restart, success!
At this point, the study of "case Analysis of getting started with Elasticsearch" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.