Well,不要刷屏了

ES-scroll

Elasticsearch | 作者 elasticStack | 发布于2018年11月21日 | 阅读数:6200

1.es版本5.6
2.使用python 的api scan导出数据
3.遇到的问题: Scroll request has only succeeded on 66 shards out of 108
4. 一直遇到这个问题导出就进行不下去, 有遇到这种情况得吗

scan.png

 
已邀请:

rochy - rochy_he

赞同来自:

你可以考虑把 request_timeout = 200 去掉,看一下效果

elasticStack - 90后it大数据男

赞同来自:

去掉了.png

 

laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net

赞同来自:

从search搜索上下文角度排查下
GET /_nodes/stats/indices/search
https://www.elastic.co/guide/e ... .html

elasticStack - 90后it大数据男

赞同来自:

{
"query": {
"bool": {
"filter": [{
"range": {
"datatime": {
"gte": "1541388368",
"lte": "1542252368"
}
}
}, {
"term": {
"comid": {
"value": "59080851823593e1a80b"
}
}
}, {
"terms": {
"group": [1, 4, 5, 6, 7, 8, 13, 14, 16, 19, 20, 21, 22, 23, 24, 25, 34, 35, 37, 39, 41, 44, 65, 66, 85, 86, 87, 88]
}
}]
}
},
"_source": {
"includes": []
},
"sort": [{
"datatime": {
"order": "desc"
}
}],
"from": "0",
"size": "0",
"highlight": {
"require_field_match": "false",
"pre_tags": ["[qthighlight]"],
"post_tags": ["[/qthighlight]"],
"fields": {
"*": {}
}
}
}

要回复问题请先登录注册