Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Install Elasticsearch under linux

Shulou Source: shulou.com Published: 2022-06-03 08:01:46 10月03日 Update

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:

Tags: Index data document node cluster type address search information memory function name foundation format concept environment service powerful distributed Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Linux Shulou Technology Docker OPPO Reno