elasticsearch
System.out.print
这个作者很懒,什么都没留下…
展开
-
ES报错:org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [FORBIDDEN/12/index read-onl
org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];解决:执行下面这段话就行了。需要注意的是9200端口是否和你的es端口一致。9200是默认的es默认的端口。如果你修改过端口,就必须修改成你自己指定的端口curl -XPUT -H "Content-Type: application/json" http://1原创 2021-08-16 13:59:34 · 1090 阅读 · 0 评论 -
记一次 elasticsearch所在服务器重启后,ES报错问题及解决
报错信息如下org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{ysoyOBW3RpiWewqC-bV14w}{47.xxx.xxx.xxx}{47.xxx.xxx.xxx:8083}] at org.elasticsearch.client.transport.TransportClientNo原创 2021-05-24 16:46:00 · 741 阅读 · 0 评论