ELK,萌萌哒

elasticsearch文档删除插件delete-by-query API 报错

Elasticsearch | 作者 liangkuai | 发布于2016年10月27日 | 阅读数:8148

代码: 
String deletebyquery = "{\"query\":{\"range\":{\"timestamp\":{\"gte\":\"2016-09-01T01:01:00.039+0000\",\"lt\":\"2016-09-06T06:23:54.039+0000\"}}}}";

DeleteByQueryResponse response = new DeleteByQueryRequestBuilder(Client.getClient(),
DeleteByQueryAction.INSTANCE)
.setIndices("index_data")
.setTypes("type_data")
.setSource(deletebyquery)
.execute()
.actionGet();
报错: 

exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is ActionNotFoundTransportException[No handler for action [indices:data/write/delete/by_query]]

root cause
ActionNotFoundTransportException[No handler for action [indices:data/write/delete/by_query]]
已邀请:

liangkuai

赞同来自:

找到问题了。。在服务器上安装了插件后重启集群

要回复问题请先登录注册