Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ElasticSearch在python上删除索引时抛出400_Python_Rest_Amazon Web Services_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch_Http Status Code 400 - Fatal编程技术网 elasticsearch,http-status-code-400,Python,Rest,Amazon Web Services,elasticsearch,Http Status Code 400" /> elasticsearch,http-status-code-400,Python,Rest,Amazon Web Services,elasticsearch,Http Status Code 400" />

ElasticSearch在python上删除索引时抛出400

ElasticSearch在python上删除索引时抛出400,python,rest,amazon-web-services,elasticsearch,http-status-code-400,Python,Rest,Amazon Web Services,elasticsearch,Http Status Code 400,在尝试使用python api从弹性搜索中删除索引时,我遇到了一个400错误 res = es.indices.delete(index=index_name) 我们得到了这个例外 RequestError: TransportError(400, u'illegal_argument_exception') 但是,当通过postman手动删除索引时,它是有效的。值得注意的是,我们并不是每天都会遇到这种错误,这很奇怪。还需要注意的是,这是一个相对较大的搜索索引,不确定这是否与(>10gb)有

在尝试使用python api从弹性搜索中删除索引时,我遇到了一个400错误

res = es.indices.delete(index=index_name)
我们得到了这个例外

RequestError: TransportError(400, u'illegal_argument_exception')

但是,当通过postman手动删除索引时,它是有效的。值得注意的是,我们并不是每天都会遇到这种错误,这很奇怪。还需要注意的是,这是一个相对较大的搜索索引,不确定这是否与(>10gb)有关。在得到这个错误之前,我们还检查了索引是否存在

ES服务器日志中出现了什么错误?不,我想我还没有设置好。当然,默认情况下,ES将在其日志文件中记录错误,请查看您的
/var/log/elasticsearch
文件夹。听起来像是格式化错误,您能否提供有关索引名称的更多详细信息。也许你的邮递员会问你看ES日志。通常,这可能是因为在您尝试删除该索引时,该索引上发生了快照。