读取文件,获取json格式的数据doc, 然后使用 bulkRequestBuilder.add(client.prepareIndex(index, type, id).setSource(doc)); 往ES中批量插入文档,接着就报下面这个异常错误: java.lang.IllegalArgumentException: The number of object passed must be even but was [1] 后来,花了点时间,才查到原因: ES 变更版本后,此处代码不适用,
一.快速入门1. 查看集群的健康状况http://localhost:9200/_cat http://localhost:9200/_cat/health?v 说明:v是用来要求在结果中返回表头 状态值说明 Green - everything is good (cluster is fully functional),即最佳状态Yellow - all data is available but some replicas are not yet allocated (cluster is