你不会是程序猿吧?

springboot 集成elasticsearch出错

Elasticsearch | 作者 pine | 发布于2018年09月06日 | 阅读数:2328

pom.xml依赖

<!-- elasticsearch --> 
<dependency> 
<groupId>org.springframework.boot</groupId> 
<artifactId>spring-boot-starter-data-elasticsearch</artifactId> 
</dependency>
 

<parent> 
<groupId>org.springframework.boot</groupId> 
<artifactId>spring-boot-starter-parent</artifactId> 
<version>2.0.4.RELEASE</version> 
<relativePath/> 
</parent>
 
 

 
A88ADB1D-0747-48C3-B6AA-78B22F11D1EA.png 3069F343-408F-4426-B783-8AF6F00109DE.png
已邀请:

rochy - rochy_he

赞同来自:

根据谷歌的结果是说你的项目其他地方应该也使用了 Netty,有以下两种解决方案:
1. 在Netty初始化前,先强制初始化 transport client;
2. System.setProperty("es.set.netty.runtime.available.processors", "false");

要回复问题请先登录注册