Elasticsearch踩坑:received plaintext http traffic on an https channel, closing connection Netty4HttpCh

踩坑:

当我们访问ip+9200 验证是否启动成功时报错

received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/172.16.5.10:9200,
remoteAddress=/172.16.11.68:11111}

如图:
Elasticsearch踩坑:received plaintext http traffic on an https channel, closing connection Netty4HttpCh_第1张图片
原因:Elasticsearch开启了安全认证
解决:在config/目录下面的elasticsearch.yml配置文件,把安全认证开关从原先的true改成false,实现免密登录访问即可,修改如图:
Elasticsearch踩坑:received plaintext http traffic on an https channel, closing connection Netty4HttpCh_第2张图片

你可能感兴趣的:(踩坑,elasticsearch,java,大数据)