Elasticsearch使用常見問題解決方案
一、和redis一起使用會(huì)造成netty啟動(dòng)沖突問題,所以需要在***Application入口文件中添加方法:
@PostConstruct
public void init() {
// see Netty4Utils.setAvailableProcessors()
System.setProperty("es.set.netty.runtime.available.processors", "false");
}
二、NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{V4jtTT-tQQqULCNjSNSfgg}{192.168.116.128}{192.168.116.128:9300}]
解決方法:
更換和你的spring-boot-starter-data-elasticsearch對(duì)應(yīng)的elasticsearch版本。
三、OpenJDK 64-Bit Server VM warning: $ Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
解決方法:
將jvm.options文件里的內(nèi)容修改為:
-XX:+UseConcMarkSweepGC 改為 -XX:+UseG1GC
四、刪除用戶
刪除用戶前需要把該用戶的進(jìn)程kill掉
pkill 或 kill -9 <pid>
例:刪除用戶user
userdel user
例:刪除用戶 user,同時(shí)刪除他的工作目錄
userdel –r user
以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持本站。
版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請(qǐng)保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非maisonbaluchon.cn所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場(chǎng),如有內(nèi)容涉嫌侵權(quán),請(qǐng)聯(lián)系alex-e#qq.com處理。
關(guān)注官方微信