Factory method ‘elasticsearchClient‘ threw exception; nested exception is java.lang.IllegalStateExce
elasticsearch 报错org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.transport.TransportClient]: Factory method 'elasticsearchClient' threw exception;
·
elasticsearch 报错
org.springframework.beans.BeanInstantiationException: 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]
在启动类中加入
System.setProperty("es.set.netty.runtime.available.processors","false");
更多推荐
已为社区贡献1条内容
所有评论(0)