Solutions to common problems using Elasticsearch

Solutions to common problems using Elasticsearch

1. Using it with redis will cause Netty startup conflicts, so you need to add a method in the ***Application entry file:

@PostConstruct
public void init() {
  // see Netty4Utils.setAvailableProcessors()
  System.setProperty("es.set.netty.runtime.available.processors", "false");
}

2. NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{V4jtTT-tQQqULCNjSNSfgg}{192.168.116.128}{192.168.116.128:9300}]

Solution:

Replace the elasticsearch version that corresponds to your spring-boot-starter-data-elasticsearch.

3. OpenJDK 64-Bit Server VM warning: $ Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.

Solution:

Modify the contents of the jvm.options file to:

-XX:+UseConcMarkSweepGC is changed to -XX:+UseG1GC

4. Deleting Users

Before deleting a user, you need to kill the user's process

pkill or kill -9 <pid>

Example: Delete user user

userdel user

Example: Delete user user and delete his working directory at the same time

userdel –r user

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Summary of common problems based on Elasticsearch 5.4
  • Solve the problem of Docker starting Elasticsearch7.x and reporting an error
  • Elasticsearch common error examples

<<:  Vue dynamic menu, dynamic route loading and refresh pitfalls

>>:  MySQL fuzzy query usage (regular, wildcard, built-in function)

Recommend

How to run a project with docker

1. Enter the directory where your project war is ...

Introduction to Apache deployment of https in cryptography

Table of contents Purpose Experimental environmen...

Detailed explanation of DIV+CSS naming rules can help achieve SEO optimization

1. CSS file naming conventions Suggestion: Use le...

Use CSS to easily implement some frequently appearing weird buttons

background In the group, some students will ask r...

Using shadowsocks to build a LAN transparent gateway

Table of contents Install and configure dnsmasq I...

Solution to slow response of Tomcat server

1. Analytical thinking 1. Eliminate the machine&#...

Some conclusions on developing mobile websites

The mobile version of the website should at least...

Detailed explanation of the role of key in React

Table of contents Question: When the button is cl...

Detailed explanation of the adaptive adaptation problem of Vue mobile terminal

1. Create a project with vue ui 2. Select basic c...

Using jQuery to implement the carousel effect

This article shares the specific code for impleme...

CSS selects the first child element under the parent element (:first-child)

Preface I recently used :first-child in a project...

How to correctly create MySQL indexes

Indexing is similar to building bibliographic ind...