美文网首页
Error creating bean with name 'e

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