received plaintext http traffic on an https channel, closing connection Netty4HttpChannel
{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:55367}
解决方案
因为开启了 ssl 认证
在 ES/config/elasticsearch.yml 文件中把xpack.security.http.ssl:enabled设置成false即可
# Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents
xpack.security.http.ssl:
enabled: false
keystore.path: certs/http.p12
elasticsearch 账号密码不知道
windows 下直接启动 ElasticSearch ,见到 started 为成功启动,访问 htttp://localhost:9200 需要输入密码,是因为开启了密码验证模式。
解决
找到elasticsearch.yml文件, 把xpack.security.enabled属性设置为false即可。
# Enable security features
xpack.security.enabled: false