elasticsearch使用问题

一、和redis一起使用会造成netty启动冲突问题,所以需要在***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对应的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文件里的内容修改为:

-XX:+UseConcMarkSweepGC 改为 -XX:+UseG1GC

 四、删除用户

删除用户前需要把该用户的进程kill掉
pkill 或 kill -9 <pid>
例:删除用户user
userdel user
例:删除用户 user,同时删除他的工作目录
userdel –r user

posted @ 2020-07-14 10:43  codeg  阅读(313)  评论(0编辑  收藏  举报