-
Environment Windows
2. Select a disk, create a new directory ES (you can define it yourself), put the ** file into the ES directory, and instruct Peishou to decompress the file and copy two copies, respectively: elasticsearch-node-master, elasticsearch-node-1, elasticsearch-node-2
Explanation: Each folder is a node of the ES cluster, marked as master will be the primary node.
4. Modify the configuration file of each node.
1) The configuration file of the master node.
2) Modify the configuration file of the node-1 node.
3) Modify the configuration file of the node-2 node.
5. Start Elasticsearch
Method 1: Start ES alone
In the window environment, you can directly click only to click the file in the bin directory; Or go to the bin directory in the cmd command window and run the following command:
Follow the steps above to turn on node-1 and node-2 respectively.
Method 2: Start ES in batches.
In Windows, if you want to set up multiple nodes for testing, you can start multiple ESs at the same time with one click, and the steps are as follows.
Create a file on the desktop, open the file with txt, enter the following **, and double-click after saving.
6. Check whether Elasticsearch is successfully launched.
Enter the following address into the browser.
If you see this sign when the node starts, it means that the node startup is successful.
Browser validation.
At this point, the Elasticsearch cluster is deployed.
Question: How can I visually check whether a cluster actually has three nodes?
Answer: Install the elasticsearch-head front-end plugin to view cluster and node information.
Install the elasticsearch-head front-end plug-in analog to view cluster and node information.
-
X-Pack is an extension of the Elastic Stack that provides security, alerting, monitoring, reporting, and machine learning.
and many other features. After that, by default, when you install Elasticsearch, X-Pack is installed, so you don't need to install it separately.
Since then, Basic Security is free forever.
By default, Elasticsearch security features are disabled when you have a secure free license. To enable security features, setup is required.
Configuration files on each node.
, added: Scope of use: Configure transport layer.
Security applies to clusters with multiple nodes and those that require an external network.
Single-node ES for communication access.
Use loopback addresses.
The single-node ES can be configured without configuration.
Elasticsearch nodes can store data that is confidential and ubiquitous for cyberattacks.
Salivating over these data.
Cyberattacks include sniffing of data.
Manipulation of data, and attempts to gain access to servers to access files where data is stored.
Securing nodes helps reduce the risk of attacks from the network
1. The principle of encrypted communication through certificates.
TLS required.
A certificate is a digital certificate.
It uses the public key infrastructure standard to associate a public key with the identity contained in the certificate. Tokenism certificates are issued by a trusted entity called a Certificate Authority (CA). The CA holds one or more special certificates called CA certificates, which it uses to issue certificates.
Only the certificate authority has access to the CA certificate) to the application with which it communicates.
Perform encryption and authentication. In order for the communication between the nodes to be truly secure, the certificate is verified.
The recommended way to verify the authenticity of a certificate in an Elasticsearch cluster is to trust the Certificate Authority (CA) that signs the certificate.
In this way, only the certificate signed by the same CA needs to be used to automatically allow the node to join the cluster.
2. Use the elasticsearch-certutil command to generate a certificate.
Once the security feature is enabled, TLS must be used to ensure that communication between nodes is encrypted.
The following new configurations are added in the center:
Set the cluster password with the help of elasticsearch-setup-passwords.
Core: auto - Randomly generated passwords.
interactive - Customize passwords for different users.
Note: XPACK must be configured before you can set a password. Otherwise, an error will be reported.
The simplest approach, let's say, is the initial deployment of the cluster phase.
The core three steps of X-Pack security configuration:
pom file.
Modify the configuration file.
-
Elasticsearch is a distributed search and analytics engine at the heart of the Elastic Stack. Logstash and Beats help collect, aggregate, enrich, and store your data in Elasticsearch. Kibana enables you to interactively explore, visualize, and share insights into your data, and manage and monitor your stack.
Elasticsearch provides near real-time search and analytics for all types of data. Whether you have structured or unstructured text, numeric data, or geospatial data, Elasticsearch efficiently stores and indexes it in a way that supports fast searches. You can go beyond simple data inspection and aggregating information to uncover trends and patterns in your data.
As your data and query volume grows, the distributed nature of Elasticsearch enables your deployment to grow seamlessly.
cluster: represents a cluster with multiple nodes, one of which is the master node, which can be elected by election, and the master and slave nodes are for the cluster. One of the concepts of ES is decentralization, which is literally understood as no central node, which is for the outside of the cluster, because from the outside, the ES cluster is logically a whole, and your communication with any one node is equivalent to the communication with the entire ES cluster.
shards: stands for index sharding, ES can split a complete index into multiple shards, which has the advantage of splitting a large index into multiple and distributing it to different nodes. Constitutes a distributed search.
The number of shards can only be specified before the index is created and cannot be changed after the index is created.
replicas: represents index replicas, ES can set multiple index replicas, the function of replicas is to improve the fault tolerance of the system, when a node or a shard is damaged or lost, it can be recovered from the replica. The second is to improve the query efficiency of ES, which automatically loads and balances search requests.
Recovery: stands for data recovery or data redistribution, ES will reallocate index shards according to the load of the machine when a node joins or exits, and will also perform data recovery when the failed node is restarted.
To put it simply: Port 9300: Used for communication between ES nodes. >>>More
You have been lucky to have such a good girlfriend who is willing to spend time with you, in fact, there is no need to worry, your current situation is not owned by you alone, it is very common, so if you want to settle accounts, then the people who own the house now are the same as you at the beginning Now, there must be a road before the car reaches the mountain, you can redeem the money, you can buy a second-hand house, etc., there is always a way for you to live. Of course, your current income is on the low side, you can. >>>More
1. The birth of the Lord.
Surname: Male Gender: Female. >>>More
I don't know how the outside world will spread that doing a hotel is not good for girls Most of the staff and leaders in the hotel are women As far as our hotel is concerned, every year there are departments rated as the city's advanced departments Women Hero Posts Now the quality of guests in high-star hotels is also very high, and the requirements for service quality have become higher So for hotel staff, every day to improve and many people who have worked in the hotel have gone out to engage in property and other work have done quite successfully, that is to say, the hotel is a place where you can really grow your skills I went from an intern to a catering foreman Although the salary is low, but compared with my classmates, the teachers think that I am more stable than them, dealing with people and things, which are all exercised in the hotel, and now I have been recruited to the sales department through internal competition, both the salary and work ability have been improved, I am only 23 years old, still young, there are still many opportunities, as long as you are lively and cheerful, work actively, and be willing to work, there are many opportunities in the hotel, if my performance is more cheerful, love to laugh, I will make faster progress I feel that you are this type It will be well received by leaders and guests.
There are 5 in total, and it's over.