1. 程式人生 > >springboot2.0整合es的異常總結

springboot2.0整合es的異常總結

time eject 配置文件 2.0 des 配置 runtime config -i

異常: availableProcessors is already set to [4], rejecting [4]

在啟動類中加入
System.setProperty("es.set.netty.runtime.available.processors", "false");

異常:org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{VA_eNPshSSmOHZYbNgepsA}{127.0.0.1}{127.0.0.1:9300}]

這個需要保證application.yml中的配置與es的配置文件保持一致即可,es的配置文件在es的安裝路徑下的config/elasticsearch.yml

springboot2.0整合es的異常總結