springboot 整合 elasticsearch 失败

39次阅读

共计 492 个字符,预计需要花费 2 分钟才能阅读完成。

Failed to instantiate [org.elasticsearch.client.transport.TransportClient]: Factory method ‘elasticsearchClient’ threw exception; nested exception is java.lang.IllegalStateException: availableProcessors is already set to [4], rejecting [4]
@SpringBootApplication

public class SpringBootExampleApplication {

public static void main(String[] args) {

System.setProperty(“es.set.netty.runtime.available.processors”,”false”);

SpringApplication.run(SpringbootexampleApplication.class, args);

}

}

参考链接 elasticsearch5.6.1. 集成 springboot 遇到的坑

正文完
 0