elasticSearch availableProcessors is already set to [8], rejecting [8]
使用springboot elasticSearch启动时报
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiSearchController': Unsatisfied dependency expressed through field 'compRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'compRepository': Cannot resolve reference to bean 'elasticsearchTemplate' while setting bean property 'elasticsearchOperations'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/data/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through method 'elasticsearchTemplate' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: 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 [8], rejecting [8]码片
网上查了一下,是elasticSearch和redis共用netty连接,导致连接冲突了,解决办法就是在application启动类上加下面的代码
public static void main(String[] args){//解决netty冲突 System.setProperty("es.set.netty.runtime.available.processors", "false");SpringApplication.run(Application.class, args);}
但我这样设置了没反应,还是继续报错,最后是在jvm的参数哪里加了下面的代码
-Des.set.netty.runtime.available.processors=false
这样问题就解决了
elasticSearch availableProcessors is already set to [8], rejecting [8]相关推荐
- elasticSearch availableProcessors is already set to [8], rejecting [8]
使用springboot elasticSearch启动时报 org.springframework.beans.factory.UnsatisfiedDependencyException: Err ...
- 【Error】Spring整合ElasticSearch启动项目报错:availableProcessors is already set to [8], rejecting [8]
详细报错信息: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with n ...
- Springboot整合Elasticsearch 报错availableProcessors is already set to [4], rejecting [4]
1.异常信息: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with ...
- SpringBoot集成ElasticSearch在启动时报availableProcessors is already set to [8], rejecting [8]
背景 项目基于SpringBoot并且集成ElasticSearch,今天在编写测试类准备进行单元测试时,报了如下这个错误. Caused by: org.springframework.beans. ...
- spring boot es错误:availableProcessors is already set to [4], rejecting [4]
Springboot整合Elasticsearch报错 今天使用SpringBoot整合Elasticsearch时候,相关的配置完成后,启动项目就报错了. nested exception is j ...
- availableProcessors is already set to [4], rejecting [4]
springboot与elasticsearch6.3集成的时候报错: Failed to instantiate [org.elasticsearch.client.transport.Transp ...
- java.lang.IllegalStateException: availableProcessors is already set to [12], rejecting [12]
srpingboot启动项目会报以下异常, 问题原因由于es的netty冲突导致的,问题细节不再赘述 Caused by: java.lang.IllegalStateException: avail ...
- IllegalStateException: availableProcessors is already set to [8], rejecting [8]
引发这个异常的场景很多,这里记录的是我这边遇到的,这是因为 ES 和 Spring-actuator 有一些兼容性配置问题. 详细异常如下: [2020-08-21 12:49:05] [kbs_de ...
- Spring4 整合ElasticSearch6.x:availableProcessors is already set to [4], rejecting [4]
Spring4.x 整合ElasticSearch6.x 提示如下错误信息: java.lang.IllegalStateException: availableProcessors is alrea ...
最新文章
- 近期活动盘点:2019第六届世界互联网大会、智慧城市的人本尺度城市形态讲座、高管AI大数据能力研修班、英伟达初创企业展示开启报名...
- vue3.0以上关于打包后出现空白页和路由不起作用
- 【工具】模板引擎 Velocity
- excel 多列匹配相等后 引用值
- 解决 MyEclipse build workspace 慢,validation javascript 更慢的问题
- php上传图片并显示代码,php图片上传代码(完整版已测试)
- ubuntu 18.04安装与配置 Redis
- 独断专行站在互联网创业风口下的 00 后 CEO,没有钱该如何继续?
- 数据增强_NLP 数据增强方法 EDA
- 在ios中运用core animation暂停和继续动画
- view函数_python测试开发django63.基于函数的视图(@api_view())
- Windows系统磁盘清理C盘扩容
- Android系统启动流程
- 功能自动化测试的策略有哪些?
- Edge AI边缘智能:Communication-Efficient Edge AI: Algorithms and Systems(未完待续)
- 定价是什么意思_直接定价发行是什么意思?什么是直接定价发行?
- LTspice使用教程笔记
- CCTV与西方媒体的区别!句句发人深思...^^
- mrctf2020_easy_equation
- 工控系统的安全噩梦,网络攻击工控系统的五大案例