Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Install Elasticsearch under linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

1. Brief introduction:

Elasticsearch provides near real-time data manipulation and search functions. All nodes in the es cluster can provide indexing and search functions together, discover each other and join the cluster automatically.

Second, basic concepts:

1. Index:

A collection of documents represented, and the index is identified by a name (must be all lowercase letters)

two。 Type (type):

Define types for data

3. Document (document):

A document is a basic unit of information that can be indexed and is represented in JSON (Javascript Object Notation) format.

There are several conceptual relationships in elasticsearch. The format is as follows:

Index-> Type-> document

User.log--- > object---- > userinfo (name,age,address)

Data address-> A data type-> Xiao Ming / Xiao Hong

4. Sharding and copying (shards & replicas):

An index can store a large amount of data beyond the hardware limit of a single node because of the existence of fragmentation. Elasticsearch provides the ability to divide an index into multiple parts, which are called shards.

Slicing is important for two main reasons:

Allows you to split / expand your content capacity horizontally, allowing you to perform distributed, parallel operations on shards (potentially, on multiple nodes), thereby improving performance / throughput while providing a failover mechanism

3. Characteristics:

1.rest interface:

Elasticsearch provides a very comprehensive and powerful REST API to check the health of your clusters, nodes, and indexes, and to manage your cluster, nodes, index data and metadata to CRUD (create, read, update and delete) your indexes and search operations to perform advanced query operations. Such as paging, sorting, filtering, script writing (scripting), facet depiction (faceting), aggregations, and many other operations

4. Installation:

Environment preparation: Jdk installation

1. Download the installation package:

Address: https://www.elastic.co/downloads/elasticsearch

two。 Extract the installation package:

3. Modify the configuration:

Modify cluster name, node name, host address, data and log path, unlocked memory (non-online environment)

4. Create users and empower:

5. Modify the number of linux file handles:

6. Virtual memory Settin

7. Start the service:

8. Check to see if the service is normal:

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report