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

Do you know why vue data is a function?

Official website explanation: When a component is...

Detailed explanation of moment.js time and date processing

Monday to Sunday time format conversion (Y --- ye...

Solution for using Baidu share on Https page

Since enabling https access for the entire site, ...

Solution to the problem that Docker cannot stop or delete container services

Preface Today, a developer gave me feedback that ...

js implements mouse switching pictures (without timer)

This article example shares the specific code of ...

JavaScript to achieve simple tab bar switching case

This article shares the specific code for JavaScr...

Use Javascript to develop sliding-nav navigation plug-in with sliding bar effect

Table of contents 1. Introduction 2. Usage 3. Dev...

Detailed tutorial on how to install MySQL 5.7.18 in Linux (CentOS 7) using YUM

The project needs to use MySQL. Since I had alway...

Six important selectors in CSS (remember them in three seconds)

From: https://blog.csdn.net/qq_44761243/article/d...

Web design must also first have a comprehensive image positioning of the website

⑴ Content determines form. First enrich the conten...

Nginx external network access intranet site configuration operation

background: The site is separated from the front ...

Analysis of MySQL cumulative aggregation principle and usage examples

This article uses examples to illustrate the prin...

How to install the graphical interface in Linux

1. Linux installation (root user operation) 1. In...

Solution for Docker container not recognizing fonts such as Songti

Problem background: When using docker to deploy t...