好的,通过在问题的EDIT部分中为您提供日志,我看到了一个安全异常。所以我问自己:ES的哪个部分提供了安全方面。
答案是:X-Pack插件。
因此,要检查是否确实是我的麻烦之源,我通过使用以下命令将其删除:
elasticsearch-plugin.bat remove x-pack
而且…现在运作良好。hou!
这是我的Java代码的结果:
{ "took" : 21, "timed_out" : false, "_shards" : { "total" : 44, "successful" : 44, "failed" : 0 }, "hits" : { "total" : 306673, "max_score" : 1.0, "hits" : [{ "_index" : ".kibana", "_type" : "config", "_id" : "5.0.0", "_score" : 1.0, "_source" : { "buildNum" : 14438 } }, { "_index" : ".monitoring-alerts-2", "_type" : "doc", "_id" : "ygmbc6k0TpKdJP77OJeG9g_elasticsearch_cluster_status", "_score" : 1.0, "_source" : {[...]} }, { "_index" : ".monitoring-data-2", "_type" : "kibana", "_id" : "60fef358-886c-43cb-9ef1-2257ccd2bcbb", "_score" : 1.0, "_source" : {[...]} }, {[...]}, { "_index" : ".monitoring-es-2-2017.05.11", "_type" : "index_stats", "_id" : "AVv3uOacGOX_5IPHNH_2", "_score" : 1.0, "_source" : {[...]} } ] }}我只需要查找此安全令牌部分,但这是另一个主题。
非常感谢@ andrei-stefan的帮助评论;)



