Error creating bean with name 'e
作者:
索性流年 | 来源:发表于
2020-08-27 14:28 被阅读0次
完整报错信息
Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/data/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is 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 [12], rejecting [12]
报错原因
- 网上说是 ES 服务端与客户端版本不一致
- 具体原因暂不明
个人解决方法
System.setProperty("es.set.netty.runtime.available.processors", "false");
本文标题:Error creating bean with name 'e
本文链接:https://www.haomeiwen.com/subject/zzdxsktx.html
网友评论