I am getting the following error while trying to scroll through results:
elasticsearch.helpers.ScanError: Scroll request has only succeeded on 13 shards out of 14
The code looks like this:
from elasticsearch_dsl import Search # pip install elasticsearch-dsl
s = Search(using = es, index = <index-name>, doc_type = '_doc').query("match", <field-name>=<name-string>).query("range", **{'@timestamp': {'gte': 'now-30d', 'lt': 'now'}} )
hits = s.scan()
log_list = []
for hit in hits:
log = vars(hit)['_d_']
#print( log )
log_list.append( log )
I am wondering what might cause this issue. Is there something wrong with the 1 shard, or the server containing the shard? Thought I would ask before digging in too deep in case someone has encountered and solved it already. I found the following question in the forum, but no answer.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.